You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Tilman Hausherr (JIRA)" <ji...@apache.org> on 2015/03/18 08:30:38 UTC

[jira] [Commented] (PDFBOX-2714) Type1Fonts working on one computer, not another

    [ https://issues.apache.org/jira/browse/PDFBOX-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14366775#comment-14366775 ] 

Tilman Hausherr commented on PDFBOX-2714:
-----------------------------------------

I also asked that you show what arial fonts you have. For me, this would be
{code}
      773.852 arial.ttf
      750.216 arialbd.ttf
      562.728 arialbi.ttf
      557.004 ariali.ttf
      175.956 ARIALN.TTF
      180.740 ARIALNB.TTF
      180.084 ARIALNBI.TTF
      181.124 ARIALNI.TTF
   23.275.812 ARIALUNI.TTF
{code}


> Type1Fonts working on one computer, not another
> -----------------------------------------------
>
>                 Key: PDFBOX-2714
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-2714
>             Project: PDFBox
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>         Environment: Win7 works, WinServer2012 doesn't
>            Reporter: Daniel Brownell
>
> Asked on SO, Tilman suggests I open a JIRA: http://stackoverflow.com/questions/29111310/pdfbox-2-0-0-type1fonts-working-on-one-computer-not-another
> I am trying to work out why I'm getting a bunch of `java.lang.IllegalArgumentException: No glyph for U+0057 in font Helvetica-Bold` errors on a Windows 2012 Server dev environment, but not on my local Windows 7 environment.
> I built the trunk from scratch, with: `mvn -DskipTests=true install`
>  on my machine (Win 7), collected the jars and made a very rudimentary test package, by dumping all the jars into a subfolder libs/ and copying the  `org/apache/pdfbox/examples `class files to the same directory, to see if the HelloWorld program works. 
> The [HelloWorld program][1] creates a file, called test.pdf with the message "WHY" as requested, but when I run it on a new machine, I get the following: 
>  
>        				
>     C:\EAP-6.3.0\PDFBOXTESTING>java -cp ".;libs/*" org.apache.pdfbox.examples.pdmodel.HelloWorld test.pdf WHY
>         Exception in thread "main" java.lang.IllegalArgumentException: No glyph for U+0057 in font Helvetica-Bold
>                 at org.apache.pdfbox.pdmodel.font.PDType1Font.encode(PDType1Font.java:303)
>                 at org.apache.pdfbox.pdmodel.font.PDFont.encode(PDFont.java:268)
>                 at org.apache.pdfbox.pdmodel.PDPageContentStream.showText(PDPageContentStream.java:316)
>                 at org.apache.pdfbox.examples.pdmodel.HelloWorld.main(HelloWorld.java:59)
> I installed Adobe Reader XI on that computer, in case it needed the fonts from Adobe, installed on the system, or who knows.
> It's not finding `U+0057`, which is a W, and in my testing, it wasn't finding a bunch of stuff.  It basically didn't find anything.  so something is fundamentally wrong, maybe the operating system has provided a bad font?  
>   [1]: https://github.com/apache/pdfbox/blob/trunk/examples/src/main/java/org/apache/pdfbox/examples/pdmodel/HelloWorld.java



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org