I have (3 pretty large) PDF files which I obtain using ghostscript
from a single source pdf generated with xelatex
(both under ubuntu linux). The 3 files select different regions from the source, like so
gs -o out.pdf -sDEVICE=pdfwrite -dDEVICEWIDTHPOINTS=26562 -dDEVICEHEIGHTPOINTS=4252 -dFIXEDMEDIA -dCompatibilityLevel=1.4 -dEmbedAllFonts=true -c "<</PageOffset [-7447 0]>> setpagedevice" -f in.pdf
Only the PageOffset
and the dimensions differ for the three files.
The last two files, which do not start at the origin, however do not display correctly in adobe acrobat reader DC (tested under windows). They do display in all other PDF-viewers I tried, but I need to submit them to a print service which does not seem to be able to deal with the problem.
What can I try to fix the files (I tried pdf fix utilities under Ubuntu, but that did not work)?