pdfbox-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Lehmkühler <andr...@lehmi.de>
Subject Re: Blank page when creating document in Linux
Date Wed, 30 Apr 2014 09:44:58 GMT
Hi,

> Jeffrey Elrod <JFE@clemson.edu> hat am 29. April 2014 um 18:06 geschrieben:
>
>
>
> Hi everyone,
>
> I'm using PDFBox to create a PDF document for our Registrars Department.  We
> develop on Windows but deploy our software to run on Linux.  Mostly PL/SQL
> development, but this development item I'm writing in Java.
>
> On windows, I generate the PDF successfully.  But on Linux the document is
> blank.  Same number of pages, just all of them are blank.  I tried using
> another font but to no avail.  For windows I used the static method
> PDTrueTypeFont.loadTTF.
>
> InputStream fontStream =
> GenerateLOMReport.class.getResourceAsStream("/org/apache/pdfbox/resources/ttf/ArialMT.ttf");
> PDFont font = PDTrueTypeFont.loadTTF(document, fontStream);
>
> For Linux/Unix I use the constructor PDType1AfmPfbFont.
>
> InputStream afmStream = new FileInputStream(new
> File("/usr/share/fonts/default/Type1/a010013l.afm"));
> InputStream pfbStream = new FileInputStream(new
> File("/usr/share/fonts/default/Type1/a010013l.pfb"));
> PDFont font = new PDType1AfmPfbFont(document, afmStream, pfbStream);
>
> I would greatly appreciate any help.
Can you provide us with a sample pdf which was created in your linux
environment, so that we can see what's wrong.
Please be aware that our mailing list doesn't support attachments like pdfs, use
a sharehoster or something similar
instead.

> Jeffrey F. Elrod
> Senior Applications Analyst
> CCIT - Enterprise Applications
> Clemson University


BR
Andreas Lehmkühler

Mime
View raw message