GetPageText() on PDF/A

Discussions about PDF management.
Post Reply
cecpap
Posts: 4
Joined: Mon Oct 24, 2016 7:33 am

GetPageText() on PDF/A

Post by cecpap » Tue Oct 25, 2016 8:24 am

Hello,
I want to get the text of a PDF/A-1b document and the method GetPageText() return specials caracters. The result is not alphanumeric. I have the same problem with the method GetPageContent().
When I try with a simple PDF I don't have this problem.
Thanks for help.
Cécile

David
Posts: 66
Joined: Mon Feb 08, 2016 3:12 pm

Re: GetPageText() on PDF/A

Post by David » Tue Oct 25, 2016 9:40 am

Hi Cecile,

Thank you for your interest in our products.

May I ask you to share the file you are using? I need this file to reproduce the issue.

I'm looking forward to hearing from you.

Regards,

David

cecpap
Posts: 4
Joined: Mon Oct 24, 2016 7:33 am

Re: GetPageText() on PDF/A

Post by cecpap » Tue Oct 25, 2016 12:57 pm

Ok, How can I send you the pdf file ?

David
Posts: 66
Joined: Mon Feb 08, 2016 3:12 pm

Re: GetPageText() on PDF/A

Post by David » Tue Oct 25, 2016 2:15 pm

Cecile,

You can attach the PDF to this ticket.

Regards,

David

cecpap
Posts: 4
Joined: Mon Oct 24, 2016 7:33 am

Re: GetPageText() on PDF/A

Post by cecpap » Tue Oct 25, 2016 2:30 pm

ok sorry.
Attachments
doc.zip
PDF/A document
(47.8 KiB) Downloaded 41 times

User avatar
Loïc
Site Admin
Posts: 5597
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: GetPageText() on PDF/A

Post by Loïc » Tue Oct 25, 2016 6:41 pm

Hello Cécile,

Unfortunately this PDF is generated without embedding correct font encoding (aka cMap or difference table). So there is basically nothing that can be done to associate each rendered glyph to the correct character ID. You will obtain the same result with Adobe reader: select the text, copy it (ctrl+c) and past it in notepad.

Please let us know if you need further information.

With best regards,

Loïc

cecpap
Posts: 4
Joined: Mon Oct 24, 2016 7:33 am

Re: GetPageText() on PDF/A

Post by cecpap » Wed Oct 26, 2016 9:14 am

ok,
thank you for your help.
Cécile

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests