No idea then.
Paulo
> -----Original Message-----
> From: Alexander Filipchik
> [mailto:[email protected]]
> Sent: Thursday, May 14, 2009 3:45 PM
> To: Post all your questions about iText here
> Subject: Re: [iText-questions] - Re: Can't print generated
> PDF in Mac OS (AdobeReader) - Email found in subject
>
> Yes, I called it.
> My code:
>
> float width = getDrawWidth(format, fileFormat);
> float height = getDrawHeight(format, fileFormat);
> Document document = new Document(new Rectangle(width, height));
> PdfWriter writer = PdfWriter.getInstance(document,
> outStream);
> writer.setDefaultColorspace(PdfName.COLORSPACE,
> PdfName.DEFAULTCMYK);
> writer.setRgbTransparencyBlending(false);
> document.addTitle("Chart");
> document.open();
>
> mapper.insertDirectory(pathResolver.translatePath(FONT_BASE_PATH));
> PdfContentByte cb = writer.getDirectContent();
> PdfTemplate tp = cb.createTemplate(width, height);
> Graphics2D g2d = tp.createGraphics(width, height, mapper);
> configureRenderingHints(g2d);
> try {
> double scaleX = 1;
> double scaleY = 1;
> init(format, fileFormat, width, height, g2d, scaleX, scaleY);
> drawChart();
> cb.addTemplate(tp, 0, 0);
> } finally {
> g2d.dispose();
> document.close();
> writer.close();
> }
>
>
> >I can only guess but did you call Graphics2D.dispose() after
> writing the >graph?
> >
> >Paulo
>
> > -----Original Message-----
> > From: Alexander Filipchik
> > [mailto:[email protected]]
> > Sent: Thursday, May 14, 2009 2:08 PM
> > To: [email protected]
> > Subject: [iText-questions] Can't print generated PDF in Mac
> > OS (Adobe Reader)
> >
> > Hello all.
> >
> >
> >
> > I'm new to Itext, so my question may be little bit stupid.
> > But I really don't know how to fix my issue.
> >
> > I generate PDF based on JFreeChart charts and found, that I
> > can't print it using Adobe Acrobat Reader on Mac (last version).
> >
> >
> >
> > Printing error is - there is no pages for printing. But it
> > displays it normally.
> >
> >
> >
> > But on WinXP - all right.
> >
> > I attached doc to email.
> >
> >
> >
> > Hope, you know how to fix it.
> >
> >
> >
> > Best regards,
> >
> > Alex
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/