If you have pixels then it was a bitmap and there's nothing that iText can
do.
Best Regards,
Paulo Soares
> -----Original Message-----
> From: vikas malik [SMTP:[EMAIL PROTECTED]
> Sent: Wednesday, November 12, 2003 7:54
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Problem in painting Graphics2D object.
>
> Hi,
> I am new to itext community. I am bumped with the
> following problem. I am using ESRI map objects in my
> project and I need to send the map output to a PDF
> file. I use the following code to get the map grahics
> in a pdf file.
>
> Document pdfDoc = new Document(PageSize.A4.rotate(),
> 50, 50, 50, 50);
> PdfWriter writer = PdfWriter.getInstance(pdfDoc, new
> FileOutputStream("D:\\Temp\\Test.pdf"));
> pdfDoc.open();
> PdfContentByte pcb = writer.getDirectContent();
> java.awt.Rectangle r = map.getDisplayBounds();
> Graphics2D g2d = pcb.createGraphics(r.width,
> r.height);
> com.esri.mo.map.dpy.DisplayManager dm =
> map.getLayerset().getDisplayManager();
> dm.draw(g2d, r.x, r.y, r.width, r.height);
> g2d.setClip(map.getExtent());
> map.paintComponents(g2d);
> g2d.dispose();
> pcb.restoreState();
> pdfDoc.close();
>
> I create the graphics object from PdfContentByte and
> paint this graphics using the map object.
> PDF is generated successfully. But when I try to
> zoom-in this pdf, borders of the map gets pixelated. I
> need the soomth lines as borders. In anybody needs the
> sample pdf I can mail this pdf seprately.
>
> thanks,
> -Vikas.
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions