-2
1
It seems that pdf file has some internal mechanism in handling the page rotation, that when you rotate a page in your software (adobe reader, mac os preview, etc), the software will only add a rotation marker to the page instead of changing the orientation of the page in storage. (I think this is the same mechanism as the way mpeg handles video rotation.)
My question is, is there any command line tool that I can rotate a page in pdf file solidly? That instead off simply applying a marker, I want the actual page in storage to be rotated, like any virtual pdf printer will do.
===================
Update:
On page 78 of the PDF Specification 2008, it mentions that the PDF's page object has an integer key value Rotate
that you can set to tell the software how the page should be displayed. This value shall be multiple of 90 degrees.
So what I am trying to achieve here is:
Rotate the page (say) 90 degrees physically instead of simply setting the Rotate
key value to 90. (That's to say the value of Rotate
should remain 0 after rotation.)
No not quite. Both pdftk and pdfjam use markers to rotate the pages. I'll take a look at ghostscript – huangzonghao – 2018-09-16T01:14:59.347
And please note the difference between this question and the one you mentioned on UnixLinux and restrain from simple copy and paste – huangzonghao – 2018-09-16T01:18:03.150
How do you infer they use markers? What's your definition of marker? Please highlight the differences between the linked question and yours because they are not obvious. – simlev – 2018-09-16T01:26:02.970
Hey look, you don't seem to understand the way pdf works at the first place. If that's the case, what's the point of forcing yourself to make an answer, especially in this copy and paste manner? – huangzonghao – 2018-09-16T01:30:06.660
If you want, you may take a look at the pdf specification and get some insight of how it actually works. And hopefully you would then be able to understand what we are talking about here
– huangzonghao – 2018-09-16T01:36:54.313