Need help writing java code to number only the odd pages of a pdf file consecutively. I know this can't be done in adobe natively because it will skp every other number if I apply the numbering to only the odd pages. I think this is possible with some java code but I am not familiar with java, I have experience with C++.
Copy link to clipboard
You can use the addWatermarkFromText method to do it. Where do you want the text to appear, and what should it look like?
If you want to write the code yourself you will need to read the documentation of the method I mentioned above.
Or you can use this (paid-for) tool I've created that will allow you to do it without having to write any code: