Works for me in GS and Acrobat. Note that you have javascript in the pdf to print and that's what is causing the message.
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Chris Wilson > Sent: Monday, July 18, 2005 10:33 PM > To: [email protected] > Subject: [iText-questions] Invalid PDF generated > > Hi all, > > I'm using iText in a project and I'm very impressed. Thank > you all for > your hard work in making it so flexible and powerful. > > I think I have found a way to make iText generate an > "invalid" PDF file. > You can see an example PDF at [http://gcc.flexdns.net/invalid.pdf]. > Ghostscript segfaults when trying to render it, and Acrobat > spits out the > mysterious error "request id is hp-41 (1 file(s))". > > The code is like this (in Java): > > URL barurl = new URL(baseurl, "img/ganttbarmid1.png"); > Image imgbar = Image.getInstance(barurl); > [...] > PdfPCell bar = new PdfPCell(imgbar, true); > bar.setColspan(middleWidth); > bar.setVerticalAlignment(Element.ALIGN_MIDDLE); > table.addCell(bar); > > I want the image to fill up the whole table cell, but when > Acrobat renders > it, the image is scaled proportionally in both directions, so > it's much > too narrow. Does anyone know how to fix that? > > If I replace the third line with the following: > > PdfPCell bar = new PdfPCell(new Phrase("foo")); > > then it doesn't crash. Any ideas? I'm using the iText 1.3 jar library. > > Cheers, Chris. > -- > _ ___ __ _ > / __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK | > / (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer | > \ _/_/_/_//_/___/ | We are GNU-free your mind-and your software | > > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > iText-questions mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/itext-questions > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
