Aw: Re: Type1Glyph2D No glyph for 41 (.notdef) in font Helvetica

2015-02-04 Thread Andreas Lüdtke
John,

thanks a lot! Latest pdfbox-app (pdfbox-app-2.0.0-20150204.020053-1023.jar) 
works nicely under Windows 8.1 with a pdf file without embedded fonts.

Thanks again

Andreas 
 

Gesendet: Mittwoch, 04. Februar 2015 um 02:06 Uhr
Von: John Hewson j...@jahewson.com
An: users@pdfbox.apache.org, Andreas Lüdtke andi.lued...@gmx.de
Betreff: Re: Type1Glyph2D No glyph for 41 (.notdef) in font Helvetica
I found the problem. It should be fixed in the next snapshot build.

-- John

 On 1 Feb 2015, at 04:13, Andreas Lüdtke andi.lued...@gmx.de wrote:

 John,

 thank you for the quick response! I just tried 
 pdfbox-app-2.0.0-20150201.120136-1008.jar and now I get the below shown 
 exception while converting the pdf to an image. Hope it helps you to track it 
 down.

 Andreas

 D:\__testjava -jar pdfbox-app-2.0.0-20150201.120136-1008.jar PDFToImage 
 rg-1234567890BA.pdf
 Exception in thread main java.lang.StringIndexOutOfBoundsException: String 
 index out of range: 0
 at java.lang.String.codePointAt(Unknown Source)
 at org.apache.fontbox.ttf.TrueTypeFont.parseUniName(TrueTypeFont.java:509)
 at org.apache.fontbox.ttf.TrueTypeFont.nameToGID(TrueTypeFont.java:479)
 at org.apache.fontbox.ttf.TrueTypeFont.hasGlyph(TrueTypeFont.java:560)
 at org.apache.pdfbox.pdmodel.font.PDType1Font.codeToName(PDType1Font.java:446)
 at 
 org.apache.pdfbox.pdmodel.font.PDType1Font.getWidthFromFont(PDType1Font.java:338)
 at org.apache.pdfbox.pdmodel.font.PDFont.getWidth(PDFont.java:241)
 at org.apache.pdfbox.pdmodel.font.PDFont.getDisplacement(PDFont.java:211)
 at 
 org.apache.pdfbox.contentstream.PDFStreamEngine.showText(PDFStreamEngine.java:687)
 at org.apache.pdfbox.rendering.PageDrawer.showText(PageDrawer.java:280)
 at 
 org.apache.pdfbox.contentstream.PDFStreamEngine.showTextStrings(PDFStreamEngine.java:601)
 at 
 org.apache.pdfbox.contentstream.operator.text.ShowTextAdjusted.process(ShowTextAdjusted.java:38)
 at 
 org.apache.pdfbox.contentstream.PDFStreamEngine.processOperator(PDFStreamEngine.java:803)
 at 
 org.apache.pdfbox.contentstream.PDFStreamEngine.processStreamOperators(PDFStreamEngine.java:465)
 at 
 org.apache.pdfbox.contentstream.PDFStreamEngine.processStream(PDFStreamEngine.java:439)
 at 
 org.apache.pdfbox.contentstream.PDFStreamEngine.processPage(PDFStreamEngine.java:149)
 at org.apache.pdfbox.rendering.PageDrawer.drawPage(PageDrawer.java:163)
 at org.apache.pdfbox.rendering.PDFRenderer.renderPage(PDFRenderer.java:204)
 at org.apache.pdfbox.rendering.PDFRenderer.renderImage(PDFRenderer.java:137)
 at 
 org.apache.pdfbox.rendering.PDFRenderer.renderImageWithDPI(PDFRenderer.java:96)
 at org.apache.pdfbox.tools.PDFToImage.main(PDFToImage.java:236)
 at org.apache.pdfbox.tools.PDFBox.main(PDFBox.java:89)

 -- Originalnachricht --
 Von: John Hewson j...@jahewson.com mailto:j...@jahewson.com
 An: users@pdfbox.apache.org mailto:users@pdfbox.apache.org; Andreas 
 Lüdtke andi.lued...@gmx.de mailto:andi.lued...@gmx.de
 Gesendet: 31.01.2015 20:25:36
 Betreff: Re: Type1Glyph2D No glyph for 41 (.notdef) in font Helvetica

 Thanks Andreas. I tool a look at the arial.ttf file which you sent me and 
 the problem was as I had suspected - Microsoft have changed the tables in 
 the Windows 8.1 version of the font.

 PDFBox relies on the PostScript glyph names in the ‘post’ table when 
 substituting a TTF in place of a Type 1 font. However, the new Windows 8.1 
 version of Arial uses a format 3 ‘post’ table which does not include any 
 names. That means that every glyph lookup fails.

 The solution is to extended FontBox's TrueTypeFont class to allow looking up 
 of PostScript names by mapping them to entries in the ‘cmap’ table. I’ve 
 opened PDFBOX-2650 to address this.

 Thanks for taking the time to report this and provide the necessary details.

 -- John

 On 31 Jan 2015, at 05:45, Andreas Lüdtke andi.lued...@gmx.de wrote:

 John,

 I forgot that I have a Windows 8.1 tablet at home: so here is the output of 
 pdfbox-app. I copied only the first lines since they are basically the same:

 D:\__testjava -jar pdfbox-app-2.0.0-20150129.180809-996.jar PDFToImage 
 rg-1234567890BA.pdf
 Jan 31, 2015 2:34:34 PM org.apache.pdfbox.rendering.font.Type1Glyph2D 
 getPathForCharacterCode
 WARNUNG: No glyph for 77 (.notdef) in font Helvetica
 Jan 31, 2015 2:34:34 PM org.apache.pdfbox.rendering.font.Type1Glyph2D 
 getPathForCharacterCode
 WARNUNG: No glyph for 97 (.notdef) in font Helvetica
 Jan 31, 2015 2:34:34 PM org.apache.pdfbox.rendering.font.Type1Glyph2D 
 getPathForCharacterCode
 WARNUNG: No glyph for 114 (.notdef) in font Helvetica
 Jan 31, 2015 2:34:34 PM org.apache.pdfbox.rendering.font.Type1Glyph2D 
 getPathForCharacterCode
 WARNUNG: No glyph for 107 (.notdef) in font Helvetica
 Jan 31, 2015 2:34:34 PM org.apache.pdfbox.rendering.font.Type1Glyph2D 
 getPathForCharacterCode
 WARNUNG: No glyph for 117 (.notdef) in font Helvetica
 I send you the font off list.

 bestr regards

 Andreas


 -- Originalnachricht --
 Von: John 

Re: PDF to Image conversation blank

2015-02-04 Thread Kevin Morin
I am using the 2.0 version. The issue happens with the latest snapshot 
(the latest when I wrote the first email).


BR

Kevin

On 04/02/2015 00:04, Maruan Sahyoun wrote:

which version of PDFBox are you using? For rendering I'd suggest that you start 
using PDFBox 2.0 although this is still under development, as this has major 
enhancements for rendering and font handling.
You can download a snapshot build from 
https://repository.apache.org/content/groups/snapshots/org/apache/pdfbox/pdfbox/2.0.0-SNAPSHOT/

BR
Maruan

Am 03.02.2015 um 23:04 schrieb Pritish Shah pritishshah...@gmail.com:


Hi,


I am using Apache PDFBOx for converting each page of pdf to image. For most of 
the pdf it is working fine.


However, for few pdf, it convert the image, but image is not coming properly.


I have attached pdf and converted images.


Can somebody help me?



Regards,
Pritish Shah
Email: pritishshah...@gmail.com
Contact#: (760) 520-3655

1_1.png1_2.pngvisacreditcardapplication.pdf






-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



Re: JIRA performance

2015-02-04 Thread Tilman Hausherr
I've complained about that one before. They've said that they had done 
something, but IMHO it is worse than ever.


Tilman

Am 04.02.2015 um 19:26 schrieb Andrea Vacondio:

Hi,
I'm trying to get more involved in the project and I'm lately often going
through the issues in JIRA but it's awfully slow.. I mean I want to throw
my notebook out the window slow. Is it just me? Anything that can be done?
Thanks




-
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org



Re: JIRA performance

2015-02-04 Thread John Hewson
Yep, it’s pretty slow.

-- John

 On 4 Feb 2015, at 10:29, Tilman Hausherr thaush...@t-online.de wrote:
 
 I've complained about that one before. They've said that they had done 
 something, but IMHO it is worse than ever.
 
 Tilman
 
 Am 04.02.2015 um 19:26 schrieb Andrea Vacondio:
 Hi,
 I'm trying to get more involved in the project and I'm lately often going
 through the issues in JIRA but it's awfully slow.. I mean I want to throw
 my notebook out the window slow. Is it just me? Anything that can be done?
 Thanks
 
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
 For additional commands, e-mail: users-h...@pdfbox.apache.org
 



Re: [PDFBOX-2.0] Signature Issue

2015-02-04 Thread Andreas Lehmkühler
Hi,

 Isaias Barroso isaias.barr...@gmail.com hat am 3. Februar 2015 um 22:58
 geschrieben:
 
 
 Hi Andreas,
 
 Now, the request to save file on close doesn't occurs but now the signature
 appears as Invalid in Adobe Forms. I'm using the
 pdfbox-2.0.0-20150203.200017-1038.jar and
 pdfbox-examples-2.0.0-20150203.200144-1010.jar SNAPSHOTS.
Thanks for the check. I'll have a look in the remaining issue later.

 Bouncycastle 1.51 are being used. The keystore is the same used on PDBBOX
 test resource directory.
 
 I'm sending the result file.
Attachments are allowed. Either you'll upload the file to a public place or send
it to me directly.

BR
Andreas Lehmkühler

 Best regards
 
 On Mon, Feb 2, 2015 at 6:13 PM, Isaias Barroso isaias.barr...@gmail.com
 wrote:
 
  Thank you,
 
  After test I'll give a feedback.
 
  BR
 
  On Mon, Feb 2, 2015 at 6:05 PM, Andreas Lehmkuehler andr...@lehmi.de
  wrote:
 
  Hi,
 
  Am 02.02.2015 um 20:24 schrieb Isaias Barroso:
 
  Hi Andreas,
 
  The SNAPSHOT (pdfbox-2.0.0-20150202.110005-1034) for today already
  contains
  the fixed code?
 
  I'm afraid not. You have to wait for the next succesful build.
 
  BR
  Andreas Lehmkühler
 
 
   BR
 
  On Mon, Feb 2, 2015 at 5:12 PM, Andreas Lehmkuehler andr...@lehmi.de
  wrote:
 
   Hi,
 
 
  Am 29.01.2015 um 16:10 schrieb Isaias Barroso:
 
   Hi Ruben,
 
  I think it isn't the same problem, because the file is correctly signed
  using PDFBOX 1.8.8 and BouncyCastle 1.45.
 
   I guess the problem was a missing trailer. I've fixed that in the
  trunk,
  see [1] for further details.
 
  Please, double check if everything is fine now.
 
  BR
  Andreas Lehmkühler
 
  [1] https://issues.apache.org/jira/browse/PDFBOX-2656
 
 
   Best regards
 
 
  On Thu, Jan 29, 2015 at 12:05 PM, Ruben Lagar ruben.la...@gmail.com
  wrote:
 
Hi Isaias,
 
 
  I had a similar problem, and I think it is related to the problem
  described
  in this Jira
 
  https://issues.apache.org/jira/browse/PDFBOX-1822
 
  There is no fix yet, as far as I know.
 
 
  El Thu Jan 29 2015 at 1:39:40 PM, Isaias Barroso (
  isaias.barr...@gmail.com)
  escribió:
 
Hi Andreas,
 
 
  I got the updated SNAPSHOT (pdfbox-2.0.0-20150129.080600-1013.jar)
  and
  used the sign_me.pdf, keystore.p12 provided on test case. Follow the
 
   result
 
   file, now Adobe Reader says that the signature is invalid and when I
 
   close
 
   the save message appears.
  I've tried using the CreateSignature.class of
  pdfbox-examples-2.0.0-20150129.080737-985.jar SNAPSHOT too.
 
  BouncyCastle 1.51 are being used.
 
  Best regards
 
 
  On Thu, Jan 29, 2015 at 9:53 AM, Andreas Lehmkühler 
  andr...@lehmi.de
  wrote:
 
Hi,
 
 
 
Isaias Barroso isaias.barr...@gmail.com hat am 28. Januar 2015
  um
 
 
   12:35
 
   geschrieben:
 
 
  Hi all,
 
  I'm trying the PDFBOX 2 SNAPSHOT and I have a issue with Signature,
 
   the
 
 
   file is processed and the size are increased but when I open the file
 
 
   on
 
 
   Adobe Reader the signature information aren't showed. When I close
  the
 
 
   an
 
   information that the document was modified appears, so I'm thinking
 
   that
 
 
   process wasn't completed correctly, although none exception are
  thrown
 
 
  To make the tests, I've used a pdfbox-examples snapshot
  (org.apache.pdfbox.examples.signature.CreateSignature)
 
 
 https://repository.apache.org/content/groups/snapshots/org/
 
  apache/pdfbox/pdfbox-examples/2.0.0-SNAPSHOT/
 
   What exact SNAPSHOT version did you use as there were recently some
 
  changes.
 
Do you have any suggestion to investigate the root cause?
 
 
   What exactly did you do to sign the pdf? Did you have a look at
  the
  provided
  testcase [1], which demonstrates all necessary steps to sign a pdf.
 
Best regards
 
 
  --
  Isaías Barroso
  Belo Horizonte - MG
 
 
  BR
  Andreas Lehmkühler
 
  [1]
 
 
http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/
 
  test/java/org/apache/pdfbox/examples/pdmodel/
  TestCreateSignature.java?view=markup
 
 
 
 
 
  --
  Isaías Barroso
  Belo Horizonte - MG
 
  
  -
  To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
  For additional commands, e-mail: users-h...@pdfbox.apache.org
 
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
  For additional commands, e-mail: users-h...@pdfbox.apache.org
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
  For additional commands, e-mail: users-h...@pdfbox.apache.org
 
 
 
 
  --
  Isaías Barroso
  Belo Horizonte - MG
 
 
 
 
 -- 
 Isaías Barroso
 Belo Horizonte - MG
 
 -
 To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
 For additional commands, e-mail: 

Re: [PDFBOX-2.0] Signature Issue

2015-02-04 Thread Isaias Barroso
Hi Andreas,

Follow a dropbox link to file
https://www.dropbox.com/s/1wo4z72y5uvu518/sign_me_signed.pdf?dl=0

BR

On Wed, Feb 4, 2015 at 11:11 AM, Andreas Lehmkühler andr...@lehmi.de
wrote:

 Hi,

  Isaias Barroso isaias.barr...@gmail.com hat am 3. Februar 2015 um
 22:58
  geschrieben:
 
 
  Hi Andreas,
 
  Now, the request to save file on close doesn't occurs but now the
 signature
  appears as Invalid in Adobe Forms. I'm using the
  pdfbox-2.0.0-20150203.200017-1038.jar and
  pdfbox-examples-2.0.0-20150203.200144-1010.jar SNAPSHOTS.
 Thanks for the check. I'll have a look in the remaining issue later.

  Bouncycastle 1.51 are being used. The keystore is the same used on PDBBOX
  test resource directory.
 
  I'm sending the result file.
 Attachments are allowed. Either you'll upload the file to a public place
 or send
 it to me directly.

 BR
 Andreas Lehmkühler

  Best regards
 
  On Mon, Feb 2, 2015 at 6:13 PM, Isaias Barroso isaias.barr...@gmail.com
 
  wrote:
 
   Thank you,
  
   After test I'll give a feedback.
  
   BR
  
   On Mon, Feb 2, 2015 at 6:05 PM, Andreas Lehmkuehler andr...@lehmi.de
   wrote:
  
   Hi,
  
   Am 02.02.2015 um 20:24 schrieb Isaias Barroso:
  
   Hi Andreas,
  
   The SNAPSHOT (pdfbox-2.0.0-20150202.110005-1034) for today already
   contains
   the fixed code?
  
   I'm afraid not. You have to wait for the next succesful build.
  
   BR
   Andreas Lehmkühler
  
  
BR
  
   On Mon, Feb 2, 2015 at 5:12 PM, Andreas Lehmkuehler 
 andr...@lehmi.de
   wrote:
  
Hi,
  
  
   Am 29.01.2015 um 16:10 schrieb Isaias Barroso:
  
Hi Ruben,
  
   I think it isn't the same problem, because the file is correctly
 signed
   using PDFBOX 1.8.8 and BouncyCastle 1.45.
  
I guess the problem was a missing trailer. I've fixed that in the
   trunk,
   see [1] for further details.
  
   Please, double check if everything is fine now.
  
   BR
   Andreas Lehmkühler
  
   [1] https://issues.apache.org/jira/browse/PDFBOX-2656
  
  
Best regards
  
  
   On Thu, Jan 29, 2015 at 12:05 PM, Ruben Lagar 
 ruben.la...@gmail.com
   wrote:
  
 Hi Isaias,
  
  
   I had a similar problem, and I think it is related to the problem
   described
   in this Jira
  
   https://issues.apache.org/jira/browse/PDFBOX-1822
  
   There is no fix yet, as far as I know.
  
  
   El Thu Jan 29 2015 at 1:39:40 PM, Isaias Barroso (
   isaias.barr...@gmail.com)
   escribió:
  
 Hi Andreas,
  
  
   I got the updated SNAPSHOT
 (pdfbox-2.0.0-20150129.080600-1013.jar)
   and
   used the sign_me.pdf, keystore.p12 provided on test case. Follow
 the
  
result
  
file, now Adobe Reader says that the signature is invalid and
 when I
  
close
  
the save message appears.
   I've tried using the CreateSignature.class of
   pdfbox-examples-2.0.0-20150129.080737-985.jar SNAPSHOT too.
  
   BouncyCastle 1.51 are being used.
  
   Best regards
  
  
   On Thu, Jan 29, 2015 at 9:53 AM, Andreas Lehmkühler 
   andr...@lehmi.de
   wrote:
  
 Hi,
  
  
  
 Isaias Barroso isaias.barr...@gmail.com hat am 28. Januar
 2015
   um
  
  
12:35
  
geschrieben:
  
  
   Hi all,
  
   I'm trying the PDFBOX 2 SNAPSHOT and I have a issue with
 Signature,
  
the
  
  
file is processed and the size are increased but when I open the
 file
  
  
on
  
  
Adobe Reader the signature information aren't showed. When I
 close
   the
  
  
an
  
information that the document was modified appears, so I'm
 thinking
  
that
  
  
process wasn't completed correctly, although none exception are
   thrown
  
  
   To make the tests, I've used a pdfbox-examples snapshot
   (org.apache.pdfbox.examples.signature.CreateSignature)
  
  
  https://repository.apache.org/content/groups/snapshots/org/
  
   apache/pdfbox/pdfbox-examples/2.0.0-SNAPSHOT/
  
What exact SNAPSHOT version did you use as there were recently
 some
  
   changes.
  
 Do you have any suggestion to investigate the root cause?
  
  
What exactly did you do to sign the pdf? Did you have a look
 at
   the
   provided
   testcase [1], which demonstrates all necessary steps to sign a
 pdf.
  
 Best regards
  
  
   --
   Isaías Barroso
   Belo Horizonte - MG
  
  
   BR
   Andreas Lehmkühler
  
   [1]
  
  
 http://svn.apache.org/viewvc/pdfbox/trunk/examples/src/
  
   test/java/org/apache/pdfbox/examples/pdmodel/
   TestCreateSignature.java?view=markup
  
  
  
  
  
   --
   Isaías Barroso
   Belo Horizonte - MG
  
   
   -
   To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
   For additional commands, e-mail: users-h...@pdfbox.apache.org
  
  
  
  
  
  
  
  
 -
   To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
   For additional commands, e-mail: users-h...@pdfbox.apache.org