Turning off image re-compression?

This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

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

Post Reply
quest-ade
User
Posts: 48
Joined: Wed Sep 28, 2005 9:20 am

Turning off image re-compression?

Post by quest-ade » Mon Jun 26, 2006 12:28 pm

Hi,

We already have optimal JPEG and PNG images (which we include using PXC_AddImageA and PXC_PlaceImage) is there any way that we can get the image data included without it being re-compressed?

There would appear to be no way to turn off compression using the existing PXC_SetCompression call - have we missed something?

(BTW We're still using pxclib30 until we have ensured that the latest v3.5 update does not cause us any upgrade issues)

Best regards,
Adrian

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

Post by John - Tracker Supp » Mon Jun 26, 2006 1:21 pm

Hi,

I am afraid not - we are looking to add this functionality into Version 4.x at some point - but for now the images will be recompressed.
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

quest-ade
User
Posts: 48
Joined: Wed Sep 28, 2005 9:20 am

Post by quest-ade » Mon Jun 26, 2006 1:29 pm

Hi,

Thanks for the response - do you have any ballpark figures with regard to timescale for v4.x?

Best regards,
Adrian

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

Post by John - Tracker Supp » Mon Jun 26, 2006 1:42 pm

Version 4 is not so far away - perhaps 2-3 months.

But this is as much to recognise additions over the past 3 years (since V3 was first released) and upcoming (i.e. the PDF-XChange Viewer) and in fairmess to you and in relation to your current question - this will not make it into the intial build.

This is likely to be included within a major revision of the libraries scheduled around the turn of the year and I suspect denoted by the 4.5 version numerics.

HTH
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

quest-ade
User
Posts: 48
Joined: Wed Sep 28, 2005 9:20 am

Post by quest-ade » Mon Jun 26, 2006 1:53 pm

Hi,

Another thought - we have the low-level API (as we bought the Pro licence) - would it be possible to use the low-level API to do this?

If so is it also possible to mix and match so that we can use the low-level API to output non-compressed images on a page (replacing PXC_AddImageA and PXC_PlaceImage)?

I'm expecting that these APIs are mutually exclusive but it doesn't hurt to ask especially as it may very well be that your high-level API is actually using the low-level one underneath?

Many thanks,
Adrian

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

Post by John - Tracker Supp » Mon Jun 26, 2006 2:20 pm

Hi Adrian,

You cannot I am afraid mix functions from the pxclib30 and xcpro35 libraries in the manner described.

You could however create a PDF file using pxclib30.dll, write it. and then re-open using XCPRO35 and using the low-level API replace content of the images without recompressing.

May not be so easy to do though and you would require a good working knowledge of the format.

HTH
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

quest-ade
User
Posts: 48
Joined: Wed Sep 28, 2005 9:20 am

Post by quest-ade » Mon Jun 26, 2006 2:27 pm

OK - no surpise there.

To summarise - if we swapped over our PDF production to using the low-level APIs (which I know requires an in-depth knowldge of the PDF format as laid out by the Adobe PDF specification) we could create a PDF with images in that did not get re-compressed?

Many thanks for your help,
Adrian

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

Post by John - Tracker Supp » Mon Jun 26, 2006 2:57 pm

No Adrian, not quite.

At this time the low level API's can be used on existing PDF's only - the xcpro35 library does not allow you to create new files.

Part of the full revision being planned is to merge the pxclib and xcpro libraries which would in principle allow this - but again you have a delay of at least 6 months before this is available.

Sorry to continue to frustrate.
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

Post Reply