Next try to upload the PDF... Am 23.10.2009 13:25 schrieb Werner Nell: Hi, I thought I'd append an example to my first mail but it seems to be stripped off. Again, I attach a PDF to this mail and will check it later. The problem when printing is: only a short part of the text is printed (perhaps some parts with the same font?), but I can not figure out when print out stops. There is no exception thrown.-----Ursprüngliche Nachricht----- Von: "Andreas Lehmkühler" <andr...@lehmi.de> Gesendet: 23.10.09 11:47:18 An: pdfbox-users@incubator.apache.org Betreff: Re: Re: text not printedHi, Gesendet: Fr, 23. Okt 2009 Von: Werner Nell<werner.n...@web.de>Hi, I think the font-loading was necessary in version 0.7.3. I eliminated this part but the result is the same. The used fonts are Arial and Arial,Bold. The properties for both are: Typ: Type 1 , Kodierung: Ansi , Originalschrifttyp: TrueType Originalschrift: ArialMT and Originalschrift: Arial-BoldMT What is the unsupported part of that?There are a lot of pdfs out there using a so called embedded subtype ttf. They are not yet supported by pdfbox. See [1] for further details.PDFReader opens the file but the bold font is shown plain, printing has the same problem like my printing routine.What in detail is the problem? Is there any printout? Do you get an exception?Btw, Is there an example how to open PDFReader from within an application.There is no example, but it should be that hard. The PDFReader just uses the convertToImage method of PDPage to create a BufferedImage of each page, which is shown within an Panel. That's all.Why are you doing all that font-loading stuff? PDFBox should find all included fonts on its own, if the font type is supported. If the fonts aren't included PDFBox tries to determine if they are installed somewhere on your system. What fonts are used within your document, truetype, truetype as embedded subtype, Type1 ...? I guess it uses some unsupported fonts. Have a look at the docs properties e.g. using the Acrobat Reader. If you want to check if a pdf will be printed with pdfbox, just try to open it with the PDFReader that comes with pdfbox. If the pdf is shown correctly the printing should work too.BR Andreas LehmkühlerRegards, Werner NellBR Andreas Lehmkühler [1] https://issues.apache.org/jira/browse/PDFBOX-490______________________________________________________ GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT! Jetzt freischalten unter http://movieflat.web.de --
Mit freundlichen Grüßen Werner Nell |
- text not printed Werner Nell
- Re: text not printed Andreas Lehmkühler
- Re: text not printed Werner Nell
- Re: Re: text not printed Andreas Lehmkühler
- Re: text not printed Werner Nell
- Re: text not printed Werner Nell
- Re: text not printed Andreas Lehmkühler
- Re: text not printed Werner Nell
- Re: text not printed Andreas Lehmkühler
- Re: text not printed Werner Nell
- Re: Re: text not printed Andreas Lehmkühler
- Re: text not printed Andreas Lehmkühler
- Re: text not printed Werner Nell
- Re: Re: text not printed Andreas Lehmkühler
- Re: text not printed Werner Nell
- Re: text not printed Andreas Lehmkühler