Hola Carlos,
Muchas gracias por tu respuesta. El codigo es el siguiente:
String ruta = "C:/Java/resultado.pdf";
Document document = new Document();
PdfWriter writer = PdfWriter.getInstance(document, new
FileOutputStream(ruta));
document.open();
document.newPage();
String path = "C:/Java/imagenes/logo.png"
Image img = Image.getInstance(path);
document.add(img);
document.close();
2008/1/18 Carlos de Luna Saenz <[EMAIL PROTECTED]>:
> ¿podrías postear algo de tu código para saber que es lo que estás
> haciendo?
> Por lo que pasa se me ocurre que lo estuviera tratando de escalar y
> definitivamente pierde fidelidad en el paso.
> Saludos
>
> ----- Mensaje original ----
> De: Jose Miguel Fernandez Gonzalez <[EMAIL PROTECTED]>
> Para: Post all your questions about iText here <
> [email protected]>
> Enviado: viernes, 18 de enero, 2008 13:58:19
> Asunto: Re: [iText-questions] 72 DPI Image Still Appearing Larger
>
>
> Hola Carlos,
>
> Muchas gracias por tu respuesta. Estoy utilizando el objeto Image de
> com.lowagie.text.Image, y efectivamente los logotipos que estoy intentando
> poner en el PDF se presentan correctamente en un componente de swing/swt.
>
> Mi proyecto es de licencia gratuita para proyectos open source
> http://www.comprobantesfiscalesdigitales.com/<http://www.comprobantesfiscalesdigitales..com/>,
> es un componente para generar facturas electronicas (comprobantes fiscales
> digitales), que ya esta completo en su totalidad, solo me falta generar la
> factura en PDF para facilidad de impresion. Pero el logotipo de la "empresa"
> me esta dando lata :(
>
>
>
> On Jan 18, 2008 9:48 AM, Carlos de Luna Saenz <[EMAIL PROTECTED]>
> wrote:
>
> > Como estas generando la imagen en el PDF? usas el Image de awt??? si
> > presentas ese Image en un control de Swing, se presenta correctamente?
> > Saludos
> >
> > ----- Mensaje original ----
> > De: diablillo <[EMAIL PROTECTED]>
> > Para: [email protected]<[EMAIL PROTECTED]>
> > Enviado: jueves, 17 de enero, 2008 17:34:42
> > Asunto: [iText-questions] 72 DPI Image Still Appearing Larger
> >
> > Hello,
> > I'm having some trouble regarding adding images to a PDF File.
> >
> > Reading the posts on this forum I resampled the image to 72 DPI, but it
> > is still appearing larger that it should be.
> >
> > Original image: logo.png <http://www.controltrack.net/itext/logo.png>
> > Resulting PDF: result.pdf <http://www.controltrack.net/itext/result.pdf>
> > Screenshot comparing the 72 DPI image and the resulting PDF (also
> > showing the image's resolution):
> > comparison.png<http://www.controltrack.net/itext/comparison.png>
> >
> > I've read all the tutorials in "Itext By Example" as I've been a loyal
> > itext user for 3 years now :) I'm so sorry to have to bother you, I usually
> > find the answers, but this issue is beyond me :(
> > ------------------------------
> > View this message in context: 72 DPI Image Still Appearing
> > Larger<http://www.nabble.com/72-DPI-Image-Still-Appearing-Larger-tp14938027p14938027.html>
> > Sent from the iText - General mailing list
> > archive<http://www.nabble.com/iText---General-f2701.html>at Nabble..com.
> >
> >
> > ------------------------------
> >
> > ¡Capacidad ilimitada de almacenamiento en tu correo!
> > No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
> > http://correo.espanol.yahoo.com/
> >
> >
> > -------------------------------------------------------------------------
> > This SF.net email is sponsored by: Microsoft
> > Defy all challenges. Microsoft(R) Visual Studio 2008.
> > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> > _______________________________________________
> > iText-questions mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/itext-questions
> > Buy the iText book: http://itext.ugent.be/itext-in-action/
> >
> >
>
>
> ------------------------------
>
> ¡Capacidad ilimitada de almacenamiento en tu correo!
> No te preocupes más por el espacio de tu cuenta con Correo Yahoo!:
> http://correo.espanol.yahoo.com/
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> iText-questions mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/