Thanks a lot. This may have solved our problem. It seems to be working on
my test environment; however, I need to verify it on the client's
environment on all of the browsers that they use and all of the printers.
Cindy Jeness
On Sun, Jun 23, 2013 at 3:14 AM, <chris.e...@depi.vic.gov.au> wrote:
> Cindy,
>
> I had a similar problem, with a map which was set to a particular scale,
> but then being changed to a different size when printing from a browser.
>
> I solved this by setting a ViewerPreference on the PdfWriter
>
> writer.addViewerPreference (PdfName.*PRINTSCALING*, PdfName.*NONE*);
>
> This seems to work in both Acrobat, and the inbuilt viewer in Firefox
>
> Regards
>
> Chris Egan
>
>
>
>
> From: Leonard Rosenthol <lrose...@adobe.com>
> To: Post all your questions about iText here <
> itext-questions@lists.sourceforge.net>,
> Date: 23/06/2013 11:44 AM
>
> Subject: Re: [iText-questions] Generated PDF differs on Windows vs
> Linux
> ------------------------------
>
>
>
> When run separately (outside of the browser), we get the printer
> information directly from the printer and the OS.
>
> When run inside of a browser, we are given the information from the
> browser.
>
> Sounds like the browsers are giving us incorrect information :(.
>
> Leonard
>
> *From: *Cynthia Jeness <*cynthiajen...@gmail.com*<cynthiajen...@gmail.com>
> >*
> Reply-To: *Post here
> <*itext-questions@lists.sourceforge.net*<itext-questions@lists.sourceforge.net>
> >*
> Date: *Saturday, June 22, 2013 7:40 PM*
> To: *Post here
> <*itext-questions@lists.sourceforge.net*<itext-questions@lists.sourceforge.net>
> >*
> Subject: *Re: [iText-questions] Generated PDF differs on Windows vs Linux
>
> After spending spending all day yesterday at the location of the client
> who is having the problem, we have determined that the problem relates to
> the fact that the Adobe Acrobat plug-in for Firefox (and other browsers for
> Windows) seems to determine that the pages in our document are not the
> appropriate size. In the case of Windows, it determines a "shrink to fit
> ratio" of 95%. This makes the labels too small. If we choose the "actual
> size" option, then the labels print correctly. In IText, we are
> specifying a page width of 792 points or 11" and a height of 612 points or
> 8.5". We have a top margin of 72 pts (1"); bottom margin of 94 pts (1.3:);
> left and right margins of 58 pts (.8 "). What would trigger the Adobe
> reader plug-in in Firefox, Chrome and IE to determine that the page is too
> large and needs to be shrunk by 5%? We also did this on a couple of
> different printers. Unfortunately, on the older Canon printer (used for
> printing most labels) under Firefox there is not an option to specify the
> actual page size option. So the problem can only be fixed by scaling up by
> 104%. This problem does not occur if we download the PDF file created and
> use Adobe Reader directly. We can provide workarounds for the problem;
> e.g., choose "actual size" if available or scale by 104% if not. However,
> the client feels that these workarounds would be too confusing for their
> average user to handle.
>
> Is the problem that the Adobe plug-in deems that the 11X8.5 page is too
> large for the printer or is the page size not actually determined by what
> we specify to our IText Document object?. Any suggestions?
>
> Cindy Jeness
>
>
>
>
>
>
>
> On Fri, Jun 21, 2013 at 3:40 AM, iText Info
> <*i...@1t3xt.info*<i...@1t3xt.info>>
> wrote:
> Op 20/06/2013 18:30, Cynthia Jeness schreef:
> > No, we are not embedding. We defined the font as the Helvetica family
> > along with the font size and style in a separae parameter file and then
> > create the font as follows:
> >
> > Font font = new Font(FontFactory.getFont(
> > item.getFont().family,
> > fontSize,
> > item.getFont().style));
> >
> > Then we set it in the chunk that we are creating.
>
> Please take a look at figure 2.4 in this chapter:*
> **http://www.manning.com/lowagie2/samplechapter2.pdf*<http://www.manning.com/lowagie2/samplechapter2.pdf>
>
> Then read the text that comes with the figure.
> Does this describe the problem you're seeing?
> Or are you talking about something completely different?
> (Because you're not entirely clear in your question.)
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
> *
> **http://p.sf.net/sfu/windows-dev2dev*<http://p.sf.net/sfu/windows-dev2dev>
> _______________________________________________
> iText-questions mailing list*
> **iText-questions@lists.sourceforge.net*<iText-questions@lists.sourceforge.net>
> *
> **https://lists.sourceforge.net/lists/listinfo/itext-questions*<https://lists.sourceforge.net/lists/listinfo/itext-questions>
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book:
> *http://www.itextpdf.com/book/*<http://www.itextpdf.com/book/>
> Please check the keywords list before you ask for examples: *
> http://itextpdf.com/themes/keywords.php*<http://itextpdf.com/themes/keywords.php>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
> Notice:
> This email and any attachments may contain information that is personal,
> confidential,
> legally privileged and/or copyright. No part of it should be reproduced,
> adapted or communicated without the prior written consent of the copyright
> owner.
>
> It is the responsibility of the recipient to check for and remove viruses.
>
> If you have received this email in error, please notify the sender by
> return email, delete it from your system and destroy any copies. You are
> not authorised to use, communicate or rely on the information contained in
> this email.
>
> Please consider the environment before printing this email.
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
> iText(R) is a registered trademark of 1T3XT BVBA.
> Many questions posted to this list can (and will) be answered with a
> reference to the iText book: http://www.itextpdf.com/book/
> Please check the keywords list before you ask for examples:
> http://itextpdf.com/themes/keywords.php
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php