Perfectly readable PDF is unreadable with PDF Plugin

Discussions about PDF management.
Post Reply
j2df
Posts: 11
Joined: Fri Nov 01, 2013 5:19 pm

Perfectly readable PDF is unreadable with PDF Plugin

Post by j2df » Tue Aug 26, 2014 3:50 pm

Hello,

I'm using the PDF plugin inside an application and in certain cases (I just happen to fall on one) the PDF is readable, with text in it, if I copy / paste the text in notepad the text is perfect, but GdPicture.Net can't read it. When I try to read it I get things like :

Code: Select all

$           !       "  #
$% !    !       % &  &      !
%!   '  ( )*)   +, +,)
I uploaded the problematic PDF on our server (I can't attach the file to this post), here's the link : http://enneasoft.ch/software/help/file.pdf
Could you take a look?

Thanks!

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Perfectly readable PDF is unreadable with PDF Plugin

Post by SamiKharma » Wed Aug 27, 2014 7:33 am

Hi,

I have tried your document with the latest V10 and it opens perfectly.
You can download it from here: https://www.gdpicture.com/download.php

Best,
Sami

j2df
Posts: 11
Joined: Fri Nov 01, 2013 5:19 pm

Re: Perfectly readable PDF is unreadable with PDF Plugin

Post by j2df » Wed Aug 27, 2014 10:55 am

Thanks for your answer!
It's my mistake, I wasn't clear enough. The PDF file opens allright, but when I try to export / read the text in it I get this kind of result :

Code: Select all

$           !       "  #
$% !    !       % &  &      !
%!   '  ( )*)   +, +,)
I'm using the "GetPageTextWithCoords" method and it's working perfectly with most of the PDF I encoutered. Could you test it with this function ? Here's a snippet of how I get the text (in VB.Net) :

Code: Select all

Dim result As String = _PDFDocument.GetPageTextWithCoords(SEPERATION_CHAR)
Dim content As String = String.Empty

For Each l As String In result.Split(Chr(10))
      Dim w As New Word(l, SEPERATION_CHAR)
                
      content = String.Format("{0}{1}", content, w.Text)
Next

SamiKharma
Posts: 352
Joined: Tue Sep 27, 2011 11:47 am

Re: Perfectly readable PDF is unreadable with PDF Plugin

Post by SamiKharma » Sun Aug 31, 2014 11:13 am

Hi,

The problem has been reproduced, addressed, and we are working on a solution.

Best,
Sami

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests