[ https://issues.apache.org/jira/browse/PDFBOX-1971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13925497#comment-13925497 ]
John Hewson commented on PDFBOX-1971: ------------------------------------- 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)