Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Aug 22, 2019 3:13 pm

Hello good afternoon!
After applying compliance to an existing pdf document, within Adobe Reader it is no longer possible to search for text / word within the file.
What will be the reason for this?
Attached are the files before and after compliance application.
Below is an example of the code used.

Dim doc As New PdfDocument()
doc.LoadFromFile("C:\OUT_GTW\File_No_Conformance.pdf")
Dim newDoc As New PdfNewDocument()
newDoc.Conformance = PdfConformanceLevel.Pdf_A1A
For Each page As PdfPageBase In doc.Pages
Dim size As SizeF = page.Size
Dim p As PdfPageBase = newDoc.Pages.Add(size, New Spire.Pdf.Graphics.PdfMargins(0))
page.CreateTemplate().Draw(p, 0, 0)
Next page
Dim output As String = "C:\OUT_GTW\File_With_Conformance.pdf"
newDoc.Save(output)
newDoc.Close()

Lib Version: 5.8.7.2040
Thank you in advance for your attention.

gafforelli
 
Posts: 37
Joined: Sat Sep 15, 2018 6:38 pm

Fri Aug 23, 2019 10:59 am

Hi,

Thanks for your inquiry.
After investigation, we found some readers can search text while some doesn't. And we also found the reason is caused by the information like below:
information on top.png

It indicates the file has been opened read-only. After we click Enable Editing, we could search text.
And if there is no that information on the top when opening, we could search text directly.

Does the hint on the top when opening the result file on your side? If not, please provide us with following information for further investigation:
1. The version of Adobe reader
2. The screenshot of searching text
3. The OS and Region information

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Fri Aug 23, 2019 12:07 pm

Hello Betsy, good morning!
Thank you so much for the quick return!
The same yes appears and when you enable editing, the text is searchable.
It's just that I noticed that other PDF/A files, even read-only, allowed searching. By changing this option, the user can save and remove the applied compliance.
However, I saw that this only happens in Adobe Reader. Today I tested on Foxit and the search is ok.
Many thanks once again for the quick response.
:)

gafforelli
 
Posts: 37
Joined: Sat Sep 15, 2018 6:38 pm

Mon Aug 26, 2019 2:39 am

Hi,

Thanks for the information.
I have posted the issue that the text on result PDF/A file cannot be searched with Read-Only mode to our Dev team. If there is any update, we will let you know.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Tue Feb 18, 2020 9:04 am

Hi,

Hope you are doing well.
After further investigation. We found most version of Adobe Reader could search the text on the result file with Read-Only mode. It seems the issue is related to the compatibility of Adobe Reader version. We suggest you use a Adobe reader which could work. If you still have the issue, please tell us the version of your Adobe Reader.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy.jiang
 
Posts: 3099
Joined: Tue Sep 06, 2016 8:30 am

Return to Spire.PDF