Any known issues PDF ver 1.3 with blank PDF Producer?

PDF-XChange Drivers API (only) V4/V5
This Forum is for the use of Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - VERSION 4 & 5 - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

Post Reply
David_Carle
User
Posts: 36
Joined: Fri Apr 20, 2012 2:43 pm

Any known issues PDF ver 1.3 with blank PDF Producer?

Post by David_Carle »

Are there any known issues relating to using your XCPRO40.dll library to merge PDF documents created with PDF Version 1.3(Acrobat 4.x) where the PDF Producer field is blank?

Our customer has reported a problem whereby the PDF-XChange process just seems to die (ie no error message given, but the processing just stops) when trying to open/merge a PDF file in PDF version 1.3 format with a blank PDF Producer field.

It's not a problem with version 1.3 where there is a value in the PDF Producer field. Also, its not a problem with earlier (eg 1.2) or later (eg 1.6) PDF versions, irrespective of whether the PDF Producer field is blank.

(The PDF version and Producer fields are displayed in the Advanced section of the Description tab in Document Properties in Acrobat Reader).


Secondly, is there a way that one can use your software to determine these values from a PDF? If so, how?

Many thanks for your help.
David_Carle
User
Posts: 36
Joined: Fri Apr 20, 2012 2:43 pm

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by David_Carle »

UPDATE: I have stepped through our source code and can advise that the problem occurs in the call to
PXCp_InsertPagesTo

It causes an Access Violation at address 100226D5 in module xcpro40.dll - read of address 00000000

Hope this helps.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by John - Tracker Supp »

Hi David,

there is no known issue - can I please get a couple of small samples from you to test with and try and reproduce please (zip any files sent please)

Also please ensure you are using the latest releases available for the products to which you are entitled and if you are not and for some reason cannot - please advise the exact build of our products you are using.

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
David_Carle
User
Posts: 36
Joined: Fri Apr 20, 2012 2:43 pm

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by David_Carle »

Hi John

I have emailed a sample PDF to support AT tracker-software DOT com

The version of xcpro40.dll that our customer is using is 4.0.162.0, dated 06/05/09 12:42. Its size is 672,024 bytes.

Thanks

David
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by John - Tracker Supp »

Hi David,

Thanks for the file and I can confirm the issue found is reproduced.

This is resolved in the new libraries upon which our Viewer is based and which later this year the XCPRO40 replacement libraries will be based - I have also asked our development team to look into to see if there is a quick fix in the current libraries possible.
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
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by John - Tracker Supp »

Hi David,

on further investigation our development team advise this file is actually corrupt and the lack of producer data in the file is not relevant - the only way currently to allow you to use this file is to open in our Viewer and save the file - and then process ....
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
David_Carle
User
Posts: 36
Joined: Fri Apr 20, 2012 2:43 pm

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by David_Carle »

Hi John

Can you provde any more information about the corruptions in the file?

Also, doesn't the fact that Acrobat Reader will open it without problem suggest that it is not corrupt?

Does your comment about the issue being resolved in the new libraries still apply, and if so can you give an indication of when this will be available?

Many thanks

David
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17818
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by Tracker Supp-Stefan »

Hi David,

The corruption details will most likely be that the file does not conform to the specification, but still this error is recoverable with some workarounds. There are mechanisms in our Viewer (and Adobe's Reader/Acrobat) that can fix some corruptions. Unfortunately the PDF Tools (and the SDK) does not yet have the same corruption recovery capabilities, and can't handle the corrupted files the way our Viewer can.

The new libraries are currently used in the PDF-X Editor, and later this year the new PDF Tools (and SDK) based on them will also be available. For now there are no specific dates set though.

Best,
Stefan
David_Carle
User
Posts: 36
Joined: Fri Apr 20, 2012 2:43 pm

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by David_Carle »

Hi Stefan

It's now "later this year" and I was wondering if there has been any progress with this?

Thanks

David
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17818
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by Tracker Supp-Stefan »

Hi David,

Yes - we've made quite some progress indeed - but mostly in the Editor for now. The new V5 PDF Tools and the associated SDK are still some time away from completion.

Regards,
Stefan
David_Carle
User
Posts: 36
Joined: Fri Apr 20, 2012 2:43 pm

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by David_Carle »

Thanks Stefan

Can you give an approximate release date?

If it's not likely to be in the near future will you consider adding this fix into a release of the current version?

Thanks, David
Last edited by David_Carle on Wed Jul 17, 2013 10:54 am, edited 1 time in total.
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6829
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by Paul - Tracker Supp »

HI David,

we'll try and fix the current version.
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
David_Carle
User
Posts: 36
Joined: Fri Apr 20, 2012 2:43 pm

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by David_Carle »

Hi Paul

Thanks for that. Can you give us any idea when this is likely to be available?

Regards, David
User avatar
Paul - Tracker Supp
Site Admin
Posts: 6829
Joined: Wed Mar 25, 2009 10:37 pm
Location: Chemainus, Canada
Contact:

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by Paul - Tracker Supp »

Hi David,

I think next week. Not set in stone however.

hth
Best regards

Paul O'Rorke
Tracker Support North America
http://www.tracker-software.com
David_Carle
User
Posts: 36
Joined: Fri Apr 20, 2012 2:43 pm

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by David_Carle »

Hi Guys

Was wondering what the current status of this issue is. As a reminder, the problems relates to a PDF created using Acrobat v 1.3 with a blank producer field.

Our customer is finding the workaround very time consuming and is looking for alternatives.

Can you advise the best solution that would involve the minimum amount of code changes, bearing in mind that this is a legacy application written using Delphi 6 and PDF XChange 4 (our customer is using xcpro40.dll version 4.0.162.0, dated 06/05/09 12:42).

Given that the issue only seems to occur if the producer field is blank, is there a way to amend this to some non blank value? If so, do you have any example code for this?

Thanks

David
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17818
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by Tracker Supp-Stefan »

Hello David,

Maybe the quickest way would be to just specify the Author when doing those merges:
https://help.pdf-xchange.com/DEV/de ... umentinfoa

The link above is for the V4.0 of the Tools SDK.

Regards,
Stefan
David_Carle
User
Posts: 36
Joined: Fri Apr 20, 2012 2:43 pm

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by David_Carle »

Hi Stefan
Thanks for the quick response.
Two questions -
1. Do you think setting the Author would solve the problem? Is it not the Producer that would need to be set?
2. I notice you refer to PXCp_SetDocumentInfoA whereas in the past we've used PXCp_SetDocumentInfoW
What's the difference?

Thanks, David
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17818
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Any known issues PDF ver 1.3 with blank PDF Producer?

Post by Tracker Supp-Stefan »

Hi David,

Apologies - Mondays are a bit hectic!
Yes indeed you will need to set the InfoField_Producer

And the PXCp_SetDocumentInfoW is the Unicode while the PXCp_SetDocumentInfoA is the ASCII version of the method. I just linked the wrong one as the Unicode one is recommended:
https://help.pdf-xchange.com/DEV/de ... umentinfow

Cheers,
Stefan
Post Reply