Page 1 of 1
Turning off image re-compression?
Posted: Mon Jun 26, 2006 12:28 pm
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)
Posted: Mon Jun 26, 2006 1:21 pm
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.
Posted: Mon Jun 26, 2006 1:29 pm
Thanks for the response - do you have any ballpark figures with regard to timescale for v4.x?
Posted: 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.
Posted: Mon Jun 26, 2006 1:53 pm
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?
Posted: Mon Jun 26, 2006 2:20 pm
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.
Posted: 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,
Posted: 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.