Hi Wildan, > I have found another problem, i already post this on my previous > message with no answer. > When converting PDF files with math formula in it, the result is not > perfect, you can see one of the result > on this address : > > http://tobethink.com/asset/5D06BA75d014.jpg > > Do the problem like this will be solved in the future ? > Or may be i have to include certain font > library to convert file similiar to this to make the result perfect ? > > Btw, the language used on previoues file was Indonesian language, the > language that people use at Bali .. :) and Java Island of coure .. :) It is always a good idea to include all needed fonts, so that pdfbox will always find all needed informations on that. Please note, that the font-support of pdfbox isn't completed yet, so that there may be still some issues, wether you embed your fonts or not.
Back to your issue. Try to include all needed fonts to the document or to your environment (if you are using a trunk version with improved font-support) so that pdfbox will find and use them. Otherwise the missing ones will be replaced with some standard fonts, which more or less leads to wrong rendered pdfs. If the issue still remains, please create a issue on JIRA and if possible attach a sample document to that, so that it'll be possible to reproduce your issue. Andreas Lehmkühler > Thanks ! > > Best Regards, > Wildan > > --- > OpenThink Labs > www.tobethink.com > > Aligning IT and Education > > >> 021-99325243 > Y! : hawking_123 > Linkedln : http://www.linkedin.com/in/wildanmaulana > > > > On Thu, Mar 26, 2009 at 7:40 AM, Daniel Wilson > <[email protected]> wrote: > > Andreas, you're right. It's that blank 2nd page. > > > > org.apache.pdfbox.pdfviewer.PageDrawer is finding page.getContents() is > > returning null about line 88. > > > > We can trap that condition ... and I guess null getContents() would mean > a > > blank page. I wonder what "draw a blank page" looks like in code ... > > > > Daniel Wilson > > > > On Wed, Mar 25, 2009 at 9:47 AM, Daniel Wilson < > > [email protected]> wrote: > > > >> I'm loading the PDF in the Adobe plugin in FireFox and I see some names > on > >> the lower right-hand corner of page 3. I'm seeing it as a 211-page > >> document. I also see page 2 as blank. > >> > >> Out of curiosity, what language is it in? I can usually identify the > >> language if it uses European characters, but this one stumps me! > >> > >> If you don't get to the bottom of the NPE first, I'll try to have a look > at > >> it tonight when I'm back to my PDFBox environment. > >> > >> Daniel Wilson > >> > >> > >> On 3/25/09, Andreas Lehmkühler <[email protected]> wrote: > >>> > >>> > When trying to convert PDF to image, where the PDF image is generated > >>> > by latex (dvipdf), it's only convert the 1st page and give me > >>> > NullPointerException after that. > >>> > >>> Which version are you using? > >>> Can you provide us with the whole stack trace to determine the code > >>> throwing the exeption? > >>> > >>> > >>> > Here is the the PDF file i use for testing purpose : > >>> > http://supriyanto.fisika.ui.edu/laci04/komputasi_edisi_3.pdf > >>> > >>> I've a quick look a your document and I saw that page 2 and 3 are > empty? > >>> Is that what you expected or is there perhaps a problem with the pdf? > >>> > >>> > >>> Andreas Lehmkühler > >>> > >> > >> > > > --- original Nachricht Ende ----
