Sujet : Re: pdf page counting
De : blockedofcourse (at) *nospam* foo.invalid (Don Y)
Groupes : sci.electronics.designDate : 29. Jan 2025, 03:09:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vnc2lo$22v5c$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2
On 1/28/2025 3:47 PM, Carlos E.R. wrote:
Sorry, I have just noticed your post today.
On 2024-12-24 00:27, Don Y wrote:
On 12/23/2024 3:08 PM, Carlos E.R. wrote:
Have you looked at Libreoffice?
>
https://ask.libreoffice.org/t/how-do-i-paginate-completed-document/58798
>
That is what I did. The pages are numbered correctly inside LO and in the printed result, and in the PDF export. However, the page counter in the PDF viewer doesn't reflect numbering styles or renumbering.
>
What are you using to view the PDF? Firefox has an in-built PDF
viewer; Adobe has the Reader and Acrobat products; there are numerous
"alternative" viewing tools, etc.
I am on Linux, so I don't have the adobe reader.
I repeat the test now: Evince, Atril, Okular, FoxitReader, firefox. All behave the same, 5 pages, counting 1 to 5.
There are TWO "counters". One counts "physical" pages, ignoring "labels".
The other counts the LABELS.
E.g., the cover of a book is often the first (physical) "page" in a PDF.
The LOGICAL page would likely display as "" (nothing) or, perhaps,
"COVER" (if someone was being pedantic).
The verso side (often blank and possibly not included if someone
was trying to skimp on the electronic version of the book)
will be (physical) page 2 but, again, not "labeled" as anything ("").
The Half Title, Copyright and Title pages are each distinct (physical) pages
but will (usually) not be labeled. Some of the other front matter may carry
numbering (usually lower case roman numerals) AS LABELS.
I.e., one can easily be on the 5th, 10th, 20th, etc. (physical) page in
a PDF and still not have seen "page 1" (often, page *2* is the first numbered)
I have a virtual machine with Windows and Adobe. Let's try. [...] It took time to try, but managed it, same result.
Did you try Firefox as the handler for .pdf's?
I hate adobe reader, it asked twice to make it the default handler for PDF. I said no when I installed it, and repeated "no" today. This is insulting.
Lots of applications nag you about installing themselves as a default
handler. IExplorer, Firefox, etc. Some give you an option to "never
ask me again". BUT, then if you opt to make that choice at a later
date, you have to sort out how to do so.
[E.g., you would likely also install <whatever> to handle .FDF
files, as well.]
The whole idea of treating part of the NAME as an indication of
the TYPE of a file is ludicrous. Especially when developers are free
to "appropriate" any particular subset of the namespace for THEIR
use. E.g., does a .dsn file describe a PCB -- or a database connection??
[This is why I have different workstations for different activities]
The format supports a fair number of capabilities that aren't
typically supported in the variety of "tools" available. For
example:
>
<https://clearmotionsystems.com/img/animations/compressor.pdf>
>
Should display a 3D model that you can manipulate WHILE it is
being animated.
Displays an empty box or frame in a document. None of the Linux PDF readers handle Javascript, probably intentionally, it is a security problem.
Running ANY application (including web pages!) for which you can't
(or won't/don't) inspect the source (assuming you are competent to
do so) is a security risk. There is no need for malevolent intent
for something to put you at risk.
For such applications, you should be running them in a sandbox
(or jail) and certainly not as a privileged user!