Hi, Gesendet: Fr, 15. Jan 2010 Von: steve poling<[email protected]>
> Andreas, > > You said: > > I won't reopen PDFBOX-483 without knowing more details on your issue. I > could be related, > > but probably it's just a sideeffect which only appears if clipping is > actviated/deactivated. > > Is it possible to provide us with a sample document? > > > > That's only fair. You've got the document. I'm using the PDF that I > attached to PDFBOX-490. (Sorry I didn't say so earlier.) Ah, ok. > If memory serves, when I opened PDFBOX-490, I got the current behavior > until I commented out W/W* whereupon I started getting text output, but > in the wrong typeface. > > Is there any place I should look in the code to follow up on your > clipping activated/deactivated conjecture? It's not that easy. You have to have a look at the pdf and find the part with the clipping operator to understand what part is clipped and what happens if you activate/deactivate it. > > Hmmm, I've made similar experiences in an other case [1]. Everything > worked fine displaying the pdf > > using PDFReader, but if I tried to print the pdf some of the content got > lost. > > Perhaps you're running in the same issue, or perhaps your hack is the > problem? > > > > The possibility that my hack is at fault weighs heavily on my mind. I'll > drop back to the current trunk version and repeat my experiment. (I'm > not seeing any NullPointerException as described in PDFBOX-552.) Please run some test with the following environments: - trunk version, clipping activated/deactivated - trunk version including your hack, clipping activated/deactivated Please describe the different results for displaying and printing the pdf. > > During my investigations concerning [1] I've learned that displaying and > printing could be quite different things. > > Both are using the (PDFBox) code for rendering but the used Graphics2d > (there are different classes used for > > displaying and printing within the JDK). Furthermore the result may depend > on the used printer driver/OS/JDK. > > What environment are you using? > > > > I feel you're onto something about the distinction between printer vs > display draw code. > > I'm running Windows XP, JDK 1.6.0_17, and printing to the HP LaserJet 4. Yes, the behaviour of the JDK-part could be different, the PDFBox part is inboth cases the same. But before we dig deeper into that, I'd like to see the results of the tests described above. As I'm on a 2 week vacancy in denmark, I can't run my own tests. BR Andreas Lehmkühler
