When printing to a PDF printer (e.g. PDFCreator or PDF24), an image is created in the resulting PDF.
This means that the text can no longer be marked.
How do I have to print a PDF document so that the text is preserved and can be highlighted?
Could you please share your sample source PDF document along with the sample code snippet that you are using for printing it. We will test the scenario in our environment and address it accordingly. Also, please share the problematic output PDF that is generated at your end.
Starting point:
Several documents from different programs (e.g. Word, List & Label) are created as PDF.
Then these PDF documents are combined into one PDF. These should then be printed out.
The printing should be done with the help of Aspose.PDF.
Problem:
Our customer prints the document using a PDF printer (e.g. FoxitReader, PDFCreator, PDF24). The “printed” PDF document is then stored in a directory, where it is “omitted” by a program, i.e. the text is extracted to e.g. to determine the email recipient in order to be able to process the document further.
The print itself works. Unfortunately, no more text can be extracted.
You can see that when you open the PDF. You can mark and copy the original text here. In the “printed out” PDF, the text can no longer be marked and copied.
Sample programm: AsposePdf.zip (94.1 KB)
Original:
Document.pdf (102.5 KB)
Output:
Document_out_Printout_from_Aspose.PDF__via_FoxitReader.pdf (36.9 KB)
Document_out_Printout_from_Aspose.PDF__via_PDF24.pdf (29.5 KB)
Document_out_Printout_from_Aspose.PDF__via_PDFCreator.pdf (30.1 KB)
We were able to notice the similar issue in our environment while testing the scenario with 21.4v of the API. Therefore, have logged it as PDFNET-49756 in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.
We are sorry for the inconvenience.