I know nothing about coding, but I’m looking to fake the page number of a PDF document so that when you open the PDF in Acrobat Reader, the page counter at the top shows, say, “1 / 50” even though the document has maybe 100 pages total.
Ha. And why might I want to do that?
Let’s just skip the why and jump straight to the more exciting “HOW”.
Like I said, I know nothing coding myself, but I know it’s possible to embed javascript in a PDF document so that when you the open the document, an action is executed.
[QUOTE]
pdfid.py
This tool is not a PDF parser, but it will scan a file to look for certain PDF keywords, allowing you to identify PDF documents that contain (for example) JavaScript or execute an action when opened.
[url]http://blog.didierstevens.com/programs/pdf-tools/
I also know there’s a line of code within a PDF file that identifies the page count:
[QUOTE]
I re-opened the PDF file to search for object which contained the number of pages used inside the PDF and found the exact count, There are “20” pages inside this malicious PDF file… This was a rather unique trick used by the attacker to encode/decode the malicious JavaScript leveraging the “this.numPages” function.
[url]http://research.zscaler.com/2010/08/pdf-exploit-number-of-pages-is-key.html
So, would you reckon this is possible?
I realize this may not be the right forum to ask about this (perhaps you can re-direct me?), but I’ll call God whoever can show me a cheat PDF document that has a larger number of pages than the Acrobat Reader page counter shows.