Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Unreadable PDF |
Post Reply ![]() |
Author | |
DerbyGull ![]() Beginner ![]() ![]() Joined: 01 Feb 19 Location: UK Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 01 Feb 19 at 7:41AM |
Hi, I create a PDF in code from a Crystal Report, I then merge other PDFs to it using the QuickPDF function. This PDF is fine i can open it and read it no problem. The problem i have is that I need to be able to use the resulting PDF with an email printer driver, this involves the printer driver being able to read the contents of the PDF for an email address, however, this PDF is unreadable to the driver. I have found that the issue occurs when the Crystal Report is exported to the PDF, if i for instance instead of doing a direct export to PDF from Crystal went via an RTF (RPT>RTF>PDF) then the file is fine and readable by the printer driver but i don't really want that extra step. Is there a function in the Quick PDF library that can fix the readability issue i have?
|
|
![]() |
|
Ingo ![]() Moderator Group ![]() ![]() Joined: 29 Oct 05 Status: Offline Points: 3529 |
![]() ![]() ![]() ![]() ![]() |
Hi Rob,
without a relevant sample file from you it's difficult to advice something. Is one file encrypted and the other ones not? Is one file linearized and the other ones not? Perhaps load and save first for all single pdf-files with QuickPDF can help? With LastErrorCode after each QuickPDF-function you can detect where the probs begin... You should have a look on the function-names which sounds a bit like analyzing or repairing. Here are few samples which i would use running through with your pdf-files: TransformFile BalancePageTree NormalizePage CombineContentStreams RemoveUsageRights Another idea is using a commandline-tool like pdftk via shell syntax. Cheers and welcome here, Ingo |
|
Cheers,
Ingo |
|
![]() |
|
DerbyGull ![]() Beginner ![]() ![]() Joined: 01 Feb 19 Location: UK Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Hi Ingo, Thanks for the response. I tried all those and it had no effect. What I have found though is that the PDF that is output to the printer using the PrintDocument function is a PDF image file rather than PDF text file, hence the reason the email printer driver could not read the text in it. I have since tried printing by automatically loading Adobe Reader and automatically printing from there using windows own built in functions and that is fine, but loading up, printing and closing down Adobe Reader for every print is not really the way i want to go. Is there anything i can do with the quick PDF library to get it to output to the printer as a PDF text file? Cheers, Rob
|
|
![]() |
|
tfrost ![]() Senior Member ![]() Joined: 06 Sep 10 Location: UK Status: Offline Points: 437 |
![]() ![]() ![]() ![]() ![]() |
I would go back to your first sentence: 'I create the PDF in code from a Crystal Report'. Is it this PDF that is an image and not a text PDF? Once you have created such a PDF as an image and you want to extract an e-mail address from it, you will need an OCR library, not the Quick PDF library, to extract the data.
If you have any control over the code that creates the image, you need to modify that to save the text you need to extract in some other form, such as placing a copy in a header line (like a fax header line) that is a text element, with the image below it. Or perhaps adding the e-mail address in an alternate data stream in the output PDF and extracting this in your program that does the printing/e-mailing. But if it is simply Crystal Reports that is (incredibly!) creating a non-editable PDF, my guess is that going to PDF via rich text will be quicker, easier, and more reliable than OCR.
|
|
![]() |
|
DerbyGull ![]() Beginner ![]() ![]() Joined: 01 Feb 19 Location: UK Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
I've tried scanning with the email printer driver (which does have OCR) rather than direct printing and it now accepts the output. Thanks for your help.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store