PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

Moderators: Tracker Support, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Ivan - Tracker Software, Tracker - Clarion Support, Tracker Supp-Stefan, John - Tracker Supp, Support Staff, moderators

 
AK
User
Topic Author
Posts: 6
Joined: Tue Nov 16, 2004 2:33 pm

SDK help not matching the objects

Wed May 04, 2005 1:55 pm

Hi Support,

at the moment I am evaluating Image-Xchange SDK, which I downloaded yesterday, but something seems to be messed up with the help file. It describes several properties and methods I don't find in the SDK objects and vice versa. I assume the help file describes objects of a former version, not of the actual one.

The task is quite simple: I just need to stamp tiffs created with TiffXchange with some watermark. I want to create a ocx with VB for this task, to which I only pass the filenames of the original tiff and the watermark tiff, a page index to specify the pages to which the watermarked should be applied and a blending level.
But I'm trying several hours and all I could do is loading and saving a tiff.
Not a good start when evaluating a product...

May be you can send me a updated help file or you could show me some short examples of the basic objects in VB. The included examples are way to complicated, I would need several hours, if not days, to trace functions and to understand how the objects are related.

Thanks
Alex
 
John - Tracker Supp
Site Admin
Posts: 8163
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Wed May 04, 2005 4:36 pm

Can you please be a little more specific as to the name of the help file you are viewing and the date that file was created - and also the functions you feel are missing ?

So I can tie the 2 together and advise if there is an issue ?

Thanks
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
 
AK
User
Topic Author
Posts: 6
Joined: Tue Nov 16, 2004 2:33 pm

Fri May 06, 2005 10:58 am

The name of the file is IXCLib30Help.chm, size 231.649 bytes, created 4. of march 2005.

For example the help file describes "ImageSaveToFile" with 3 parameters, the VB object viewer shows only a "Save" method for the AxImage object with 2 parameters.

Help description of "PageAlphaPlace" seems to be related to method "AlphaPlace" of the page object, but in VB there are 9 parameters, the help file describes only 7.

There a many more errors, most of them related to the names of methods and the number of parameters.
Attachments
Tracker.rar
The help file and a few screenshots of the VB object browser.
(610.77 KiB) Downloaded 314 times
 
John - Tracker Supp
Site Admin
Posts: 8163
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Fri May 06, 2005 1:31 pm

Thank you - have asked the team responsible to look at urgently.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.



Best regards

Tracker Support

http://www.tracker-software.com
 
AK
User
Topic Author
Posts: 6
Joined: Tue Nov 16, 2004 2:33 pm

Tue May 17, 2005 8:34 pm

Are there any news?

I have only a few days left evaluating your product and would be glad if you could at least help me with my code.
 
John - Tracker Supp
Site Admin
Posts: 8163
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Wed May 18, 2005 6:40 am

Hi,

The updated Help file for the ActiveX will be updated and published tomorrow.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.



Best regards

Tracker Support

http://www.tracker-software.com
 
AK
User
Topic Author
Posts: 6
Joined: Tue Nov 16, 2004 2:33 pm

Fri May 20, 2005 8:24 am

Hi Support,

thank you, looks much better now. But my code is still not working, I get a automation error when using the alphablend method.
Can you please have a look at it and tell me what I've done wrong?
Attachments
Test 1.rar
(23.06 KiB) Downloaded 323 times
 
John - Tracker Supp
Site Admin
Posts: 8163
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Fri May 20, 2005 8:32 am

Actually the help file had not yet been re-published - please see attached :

Will also ask our dev concerned to take a look at your application:
Attachments
AxImages3.zip
Updated Help
(767.09 KiB) Downloaded 305 times
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.



Best regards

Tracker Support

http://www.tracker-software.com
 
AK
User
Topic Author
Posts: 6
Joined: Tue Nov 16, 2004 2:33 pm

Fri May 20, 2005 8:43 am

Strange. The file I downloaded yesterday had a much larger size than the one I was complaining about, and I was sure the description of some functions I looked at matched the objects used in VB.

However, I would be glad if you could help me with the code, I'm sure I have missed something rather simple.
 
John - Tracker Supp
Site Admin
Posts: 8163
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Fri May 20, 2005 12:44 pm

Hi,

further to your example - this has highlighted a limitation in the format filter supported - we have now added this and will upload this weekend build 3.4081 with this addition - your code as supplied would then provide the expected results without change on your part.

Thanks.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.



Best regards

Tracker Support

http://www.tracker-software.com
 
AK
User
Topic Author
Posts: 6
Joined: Tue Nov 16, 2004 2:33 pm

Mon May 23, 2005 10:51 am

Hi,

with the new build it works as expected, thank you! But I came to the problem of scaling the watermark image to the size of the target image.
At first i tried

sourcepage.scale targetpage.width,targetpage.height,AXI_ScaleMethod_Bicubic

but despite the VB object viewer shows the same format as the AxImage library help file, I get several format/syntax related errors when trying to compile.
When changing the code to what the compiler suggests, I end up with this:

SourcePage.Scale (TargetPage.Width, TargetPage.Height)-(0, 0)

But this can't be compiled too, error states "wrong number of arguments or illegal setting of a property" (translated from german).

So I tried

SourcePage.ScaleFrom SourcePage, 0, 0, SourcePage.Width, SourcePage.Height, 0, 0, TargetPage.Width, TargetPage.Height, AXI_ScaleMethod_Bicubic

but this gives me a automation error again.

Any hints? Is a new build needed?



Update:

The method page.ConvertToFormat doesn't work, too - automation error. I get the impression that at least the ActiveX implementation isn't tested enough for a final product. It seems it is something like a beta version and the tests are done by the customers.
Since we have already integrated Tiff-Xchange into our product I was thinking about integrating PDF-Xchange Pro and Image-Xchange too, to get everything from one vendor, but at the moment I'm just disappointed about the quality of Image-Xchange.
When your products work, the are pretty good, but getting them running is not always as easy as it should be.
 
John - Tracker Supp
Site Admin
Posts: 8163
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Mon May 23, 2005 4:12 pm

Hi,

I have aske the Project dev to go through the compete set of functionality to double check all is correct and this wioll done urgently tomorrow - will respond as soon as I have an udpate.

thanks for your patience.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.



Best regards

Tracker Support

http://www.tracker-software.com
 
John - Tracker Supp
Site Admin
Posts: 8163
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Wed May 25, 2005 8:49 am

Hi,

We have now gone through your sample app and located some small issues in the SDK and a new build is also available from from the link below

http://www.tracker-software.com/IMX3SDK.zip

Also some notes on your app :

1. About Scaling method. It seems you have your own method to scale therefore that method is hidden. please try to call as follows :

With SourcePage
.Scale SourcePage.Width, SourcePage.Height, AXI_ScaleMethod_Bicubic
End With

2. About ScaleFrom - you cannot call for SourcePage where the parameter "SrcPage" is "SourcePage" too. So the code:

SourcePage.ScaleFrom SourcePage, 0, 0, SourcePage.Width, SourcePage.Height, 0, 0, TargetPage.Width, TargetPage.Height, AXI_ScaleMethod_Bicubic


will not work.

3. RE : "automation error".

This is a COM automation error, and if the function return's an
error code (no S_OK) this is not our error you need to code to and trap the code blocks and see the "LastError" property in page or image class and this should lead you to the problem.

Hope that helps.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.



Best regards

Tracker Support

http://www.tracker-software.com
 
Dorwol
User
Posts: 274
Joined: Mon Aug 04, 2008 5:04 pm

Re: SDK help not matching the objects

Fri Jul 03, 2015 4:02 pm

It seems that ConvertToFormat still not work.

OK, I can set ConvertToFormat. But if I save my final image, the result is still the old Format (like RGB).

Please help (use V4)
 
Ivan - Tracker Software
Site Admin
Posts: 3457
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: SDK help not matching the objects

Sat Jul 04, 2015 11:53 pm

Do you use ActiveX control or native DLLs calls?

if you use DLL, you have to specify how your page should be saved. For example, to save as 8-bit grayscale, you have to make the following call:

IMG_PageSetFormatLongParameter(pPage, FP_ID_ITYPE, ImageFormat_Gray_8);
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
 
Dorwol
User
Posts: 274
Joined: Mon Aug 04, 2008 5:04 pm

Re: SDK help not matching the objects

Sun Jul 05, 2015 10:27 am

Ivan - Tracker Software wrote:
Do you use ActiveX control or native DLLs calls?
I use the AX-control. There is not such a function (PageSetFormatLongParameter). Or? :o
 
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 11551
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: SDK help not matching the objects

Mon Jul 06, 2015 1:32 pm

Hi Dorwol,

Are you using the attached help file? If you are - the method Ivan mentions is under:
Pages -> Format Specific Functions.

Regards,
Stefan
Attachments
IXCLib40Help.zip
(220.51 KiB) Downloaded 80 times
 
Dorwol
User
Posts: 274
Joined: Mon Aug 04, 2008 5:04 pm

Re: SDK help not matching the objects

Mon Jul 06, 2015 3:30 pm

Hi Stefan,

thank you. But how to use this function in the AX?

For example, in this way?
Const ImageFormat_BlackAndWhite_1 = [b]?????[/b]   (I think "1")
Const FP_ID_ITYPE = [b]?????[/b]   (I don't know)

imgAX.page(0).FormatLongParameter(FP_ID_ITYPE) = ImageFormat_BlackAndWhite_1
If yes, what are the right values for "?????"?
 
Ivan - Tracker Software
Site Admin
Posts: 3457
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada
Contact:

Re: SDK help not matching the objects

Tue Jul 14, 2015 5:07 pm

In the AX you have property FormatLongParameter.

Here is constants you may need (C++, but I'm sure you can easily convert it to VB):

enum IXC_FormatParametersIDS
{
    FP_ID_FORMAT = 0x464d5420,
    FP_ID_ITYPE = 0x49545950,
    FP_ID_IMG_SUBTYPE = 0x53545950,
    FP_ID_COMP_TYPE = 0x434f4d50,
    FP_ID_COMP_LEVEL = 0x434c4556,
    FP_ID_JPEG_QUALITY = 0x4a514c54,
    FP_ID_LOSSLESS = 0x4c534c53,
    FP_ID_DITHER = 0x44495448,
    FP_ID_GRAY = 0x47524159,
    FP_ID_INTERLACE = 0x494e524c,
    FP_ID_XDPI = 0x44504958,
    FP_ID_YDPI = 0x44504959,
    FP_ID_PAGE_DELAY = 0x44454c41,
    FP_ID_ALPHA = 0x414c4641,
    FP_ID_GAMMA = 0x47414d4d,
    FP_ID_EXIF = 0x45584946,
    FP_ID_XMP = 0x584d5020,
    FP_ID_TEXT00 = 0x54583030,
    FP_ID_TEXT01 = 0x54583031,
    FP_ID_TEXT02 = 0x54583032,
    FP_ID_TEXT03 = 0x54583033,
    FP_ID_TEXT04 = 0x54583034,
    FP_ID_TEXT05 = 0x54583035,
    FP_ID_TEXT06 = 0x54583036,
    FP_ID_TEXT07 = 0x54583037,
    FP_ID_TEXT08 = 0x54583038,
    FP_ID_TEXT09 = 0x54583039,
    FP_ID_TEXT0A = 0x54583041,
    FP_ID_TEXT0B = 0x54583042,
    FP_ID_TEXT_FF = 0x54584646,
    FP_ID_TITLE = 0x54583030,
    FP_ID_AUTHOR = 0x54583031,
    FP_ID_DESCRIPTION = 0x54583032,
    FP_ID_COPYRIGHT = 0x54583033,
    FP_ID_CREATION_TIME = 0x54583034,
    FP_ID_SOFTWARE = 0x54583035,
    FP_ID_DISCLAIMER = 0x54583036,
    FP_ID_WARNING = 0x54583037,
    FP_ID_SOURCE = 0x54583038,
    FP_ID_COMMENT = 0x54583039,
    FP_ID_ANNOTATION = 0x54583041,
    FP_ID_URL = 0x54583042,
    FP_ID_TEXT = 0x54584646,
    FP_ID_BPP = 0x42505020,
    FP_ID_BPC = 0x42504320,
    FP_ID_CHANNELS = 0x4348414e,
    FP_ID_ISTHUMBNAIL = 0x5448554d,
    FP_ID_ACCESS = 0x41434320,
    FP_ID_FILTER = 0x46494c54,
    FP_ID_JP2K_CODESTRMTYPE = 0x4a325354,
    FP_ID_COLORSPACE = 0x434c5253,
    FP_ID_ALPHA_TYPE = 0x41545950,
    FP_ID_ALPHA_JPEG_QUALITY = 0x414a5156
};

enum  IXC_ImageFileFormatIDs
{
    FMT_INVALID_FORMAT_ID = 0xffffffff,
    FMT_BMP_ID = 0x424d5020,
    FMT_GIF_ID = 0x47494620,
    FMT_PNG_ID = 0x504e4720,
    FMT_JNG_ID = 0x4a4e4720,
    FMT_JPEG_ID = 0x4a504547,
    FMT_ICO_ID = 0x49434f20,
    FMT_PBM_ID = 0x50424d20,
    FMT_PGM_ID = 0x50474d20,
    FMT_PPM_ID = 0x50504d20,
    FMT_JBIG_ID = 0x4a424947,
    FMT_JBIG2_ID = 0x4a424732,
    FMT_JPEG2K_ID = 0x4a50324b,
    FMT_WBMP_ID = 0x57424d50,
    FMT_PCX_ID = 0x50435820,
    FMT_DCX_ID = 0x44435820,
    FMT_TGA_ID = 0x54474120,
    FMT_TIFF_ID = 0x54494646,
    FMT_DNG_ID = 0x444e4720,
    FMT_WMF_ID = 0x574d4620,
    FMT_AMF_ID = 0x414d4620,
    FMT_EMF_ID = 0x454d4620
};

enum IXC_BaseImageFormat
{
   ImageFormat_Auto = 0,
   ImageFormat_BlackAndWhite_1 = 1,
   ImageFormat_Indexed_1 = 2,
   ImageFormat_Indexed_2 = 3,
   ImageFormat_Indexed_3 = 4,
   ImageFormat_Indexed_4 = 5,
   ImageFormat_Indexed_5 = 6,
   ImageFormat_Indexed_6 = 7,
   ImageFormat_Indexed_7 = 8,
   ImageFormat_Indexed_8 = 9,
   ImageFormat_Gray_8 = 10,
   ImageFormat_Gray_12 = 11,
   ImageFormat_Gray_16 = 12,
   ImageFormat_AlphaGray_8 = 13,
   ImageFormat_AlphaGray_12 = 14,
   ImageFormat_AlphaGray_16 = 15,
   ImageFormat_RGB_8 = 16,
   ImageFormat_RGB_12 = 17,
   ImageFormat_RGB_16 = 18,
   ImageFormat_RGB_5_5_5 = 19,
   ImageFormat_RGB_5_6_5 = 20,
   ImageFormat_ARGB_8 = 21,
   ImageFormat_ARGB_12 = 22,
   ImageFormat_ARGB_16 = 23,
   ImageFormat_ARGB_1_5_5_5 = 24,
   ImageFormat_Vector_EMF = 0x8000,
};
Tracker Software (Project Director)



When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.

Who is online

Users browsing this forum: No registered users and 1 guest