You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "John Hewson (JIRA)" <ji...@apache.org> on 2014/03/10 08:03:43 UTC

[jira] [Comment Edited] (PDFBOX-1971) Bad /bbox dialog after creating PDF with custom font

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

John Hewson edited comment on PDFBOX-1971 at 3/10/14 7:03 AM:
--------------------------------------------------------------

Your example does not compile, specifically on this line the constant does not exist in PDFBox:

{code}
PDFont font = PDType1Font.LIBERATIONSANS_BOLD;
{code}



was (Author: jahewson):
Your example does not compile, specifically on this line the constant does not exist in PDFBOX:

{code}
PDFont font = PDType1Font.LIBERATIONSANS_BOLD;
{code}


> Bad /bbox dialog after creating PDF with custom font
> ----------------------------------------------------
>
>                 Key: PDFBOX-1971
>                 URL: https://issues.apache.org/jira/browse/PDFBOX-1971
>             Project: PDFBox
>          Issue Type: Bug
>          Components: Writing
>    Affects Versions: 1.8.4
>         Environment: Linux and Windows
>            Reporter: janak
>         Attachments: Hello World.pdf, LiberationSans-Bold.afm, LiberationSans-Bold.pfb, LiberationSans-Bold.ttf, LiberationSans-Regular.afm, LiberationSans-Regular.pfb, LiberationSans-Regular.ttf, Main.java
>
>
> I have tried with adding my customer font in PDFBox resource but it not creating proper PDF. PDF was created successfully but its showing Font contain bad /bbox dialogue while opening the pdf. What will be solution for this.
> Testing with font : LiberationSans with Regular and Bold
> Also tried with loadTTF and PDType1AfmPfbFont  class but pdf was 150 times larger then attached one.



--
This message was sent by Atlassian JIRA
(v6.2#6252)