Can't Open PDF in Adobe after Printed from Lite Driver

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

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

Post Reply
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Can't Open PDF in Adobe after Printed from Lite Driver

Post by jeffp »

One of my client's is having issues with printing to the Lite Driver (which we license from you and distribute with our product). The attached file is one example. It opens fine in the ViewerAX and NitroPDF, but it will not open in Adobe (I'm using Adobe 9).

See attached.
Attachments
Corrupted.zip
(34.23 KiB) Downloaded 242 times
User avatar
Lzcat - Tracker Supp
Site Admin
Posts: 677
Joined: Thu Jun 28, 2007 8:42 am

Re: Can't Open PDF in Adobe after Printed from Lite Driver

Post by Lzcat - Tracker Supp »

Sorry, but your documkent was modified after creation, so it not a problem of Lite Driver itself. However looks like last modification was done using Viewer, so I'll need way to reproduce it.
By the way, if your client is using some automation system to manage documents it may be its problem - file is completely correct except one: it has appended with five letters string "39258", which is CORRECT file size (without this string). If I remove it - file opens correctly in Adobe.
Victor
Tracker Software
Project manager

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Can't Open PDF in Adobe after Printed from Lite Driver

Post by jeffp »

Ok. Here's his exact process.

1. Prints the file out using the Lite driver from his Tax preparation program.
2. Opens the file in the ViewerAX
3. Reorders some pages in the thumbs view
4. Selects a number of radom pages in thumbs view and extracts them to new file
5. Saves the newly extracted pages to a file.

I tried to reproduce this on my end by haven't been able to yet.

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

Re: Can't Open PDF in Adobe after Printed from Lite Driver

Post by Tracker Supp-Stefan »

Hi Jeff,

So is he doing all this in your application or using some other third party tools as well? If yes - do you have anything extra in the code that could be adding the size of the file at it's end, and is he using the latest build of your app? Or maybe that user is using some document managements software after creating.modifying the file - as Victor suggested?

Best,
Stefan
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Can't Open PDF in Adobe after Printed from Lite Driver

Post by jeffp »

The extraction is done using the following code. Other than that, we just save out the extracted pages by calling save in the Viewer.

Code: Select all

procedure TPDFViewerAX.ExtractAndCreate(ADocID: Integer; APages: String; DeleteSource: Boolean;
  var ANewDocID: Integer);
begin
  FControl.SetProperty('Operations.ExtractPages.RangeType', 'Exact', 0);
  FControl.SetProperty('Operations.ExtractPages.RangeText', APages, 0);
  FControl.SetProperty('Operations.ExtractPages.DeleteAfterExtract', 0, 0);
  FControl.DoDocumentVerb(ADocID, '', 'ExtractPages', vIn, vOut, PXCVA_NoUI);

  FControl.GetActiveDocument(ANewDocID);

  if DeleteSource then DeleteDocumentPages(ADocID, APages);
end;

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

Re: Can't Open PDF in Adobe after Printed from Lite Driver

Post by John - Tracker Supp »

Hi Jeff,

I suspect this was a specific problem with build 200 and is now resolved - if the file is opened in build 201 and saved (see attached) - it opens just fine in Adobe ...

Please update and advise if you concur.

Thanks
Attachments
Corrupted2.pdf
Corrupted2.pdf
(38.34 KiB) Downloaded 289 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
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2352
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: Can't Open PDF in Adobe after Printed from Lite Driver

Post by Vasyl-Tracker Dev Team »

Hi Jeff,

We have checked your attached document:

The File Modification Date is (see it in any file explorer): 29/03/12
The last Document Modification Date is (see it in 'Document Properties' in the any pdf-viewer): 26/03/12

It looks like: you modified file directly after saving by our viewer ActiveX (or by our end-user viewer).
If you believe that it is our issue please make the simple app. to reproduce trouble and give us the source example document also...

Thanks.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
jeffp
User
Posts: 914
Joined: Wed Sep 30, 2009 6:53 pm

Re: Can't Open PDF in Adobe after Printed from Lite Driver

Post by jeffp »

I think my user may have some kind of document management system that is affecting this. Again, I can't reproduce on my end. Thaks for looking into it.
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Can't Open PDF in Adobe after Printed from Lite Driver

Post by John - Tracker Supp »

Pleasure Jeff :)
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