Re: pdf files do not display correctly



On Feb 1, 2:36 am, r...@xxxxxxxxxxxx (Robin Fairbairns) wrote:
xngse <n...@xxxxxxxxx> writes:
I installed mactex and the tex files compiled and print correctly.

If I do latex and the use xdvi to display the dvi file, it comes out
fine on the screen.

If I do pdflatex, the pdf file will print out on letter size paper
correct, but the display on the screen is messed up. It seems like one
screen displays 3/4 of a page. After two page downs, I would be on
page 1.5 instead of p.2.

I wouldn't call that "messed up" it's just a different zoom level than
in xdvi. It might take nothing more than editing the preferences in
whatever software is used to display the PDF. Under windows, with
Acrobat Reader, it is a menu: [Edit]->[Preferences]->[Page Display].

Of course, PDF files can contain an "page view on open" setting that
overrides the user's preferences (at least in Acrobat Reader).

[...]

the most likely thing is that you've got a default pdf start view of
"FitH"; i _think_ the correct one is "FitV". however, i know of no
way of setting this parameter other than using hyperref.

The correct _default_ (in my opinion) is for the PDF file
to do nothing for the start view and let the user's defaults
prevail (in whatever software is used to view PDFs).

One can achieve that (using hyperref) with something
like
\usepackage[pdfstartview={XYZ null null null},%
%otheroptions
]{hyperref}
I _think_ the default in pdflatex without hyperref is to not include
any page view action (letting the reader defaults hold.

fwiw, i always use FitH, since it allows me actually to read the stuff
on the screen -- with FitV the text is too small for my aged eyes.

This is also my Acrobat Reader preference (and gsview
default) for _reading_ PDF files (I also have aged eyes), but
for _building_ PDF files I use the above. As the eyes age, I am
leaning toward a fixed scaling of about 150-200%. However, as
monitors keep getting larger I am able to hold off on that.

To test non-hyperref defaults, I created files with hyperref
(no options) and without it, by three routes each:
pdflatex, latex+dvipdfmx, and latex+dvips+ps2pdf. All
three hyperref files opened in FitV (fit vertical dimension
to window) and the other three opened in FitH (fit horizontal
page dimension to window, my AcroRd preference setting).
If I turn off that preference (selecting "automatic" in the
display preference dialog), all of them open in FitV.

I'm guessing all three routes without hyperref include
opening page display setting.


something like:

\usepackage{ifpdf}
\ifpdf
\usepackage[pdfstartview=FitV]{hyperref}
\fi

may help. this won't make any difference if (a) you're using a reader
that doesn't honour pdfstartview, or (b) i've got it wrong.

I think the OP should accept that he will often have to change
the settings when viewing PDF files. There are a lot of PDF
producers out there who think they know better than the
consumer what view their PDFs should start in. :-(

in the latter case, someone who knows what they're talking about may
be along soon...

Which is not to say that I know what I'm talking about, but I did
look at a few PDFs before replying.


Dan
.



Relevant Pages

  • Re: Northwind Employee Form and PDFs
    ... I think you could insert the MS Browser control and display the PDF's within ... the control providing you can currently view PDF docs within Internet ... >> PDF files internally are not anything like most bitmap files, ...
    (microsoft.public.access.formscoding)
  • JEditorPane and HTMLEditorKit
    ... I'm using JavaHelp to display html pages and would like to use it also ... for pdf files. ... load a PdfEditorKit wich would load the pdf in a img tag. ...
    (comp.lang.java.gui)
  • ANN: WPViewPDF V1.11 - the fast PDF Viewing Component
    ... WPViewPDF can display pages in rows and columns, ... This component opens PDF files almost instantly, ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: WPViewPDF V1.11 - the fast PDF Viewing Component
    ... >kind of PDF files? ... it wil not display "any" kind of PDF file. ... colors in general) often color conversion functions are defined, ... I tested it with a set of PDF files, created by Chrystal Report, by ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: pdf in java Viewing... Not a good experience
    ... > BUT I need to know the external pdf viewers name ... This code is austensibly to open a url in a browser, but on Windows it will ... static class to display a URL in the system browser. ...
    (comp.lang.java.gui)