imagemagick - Clone PDF file in a single page -


I've found a PDF file which is actually 1/5 of the size of an A4 page, and one to convert it The problem with adding it to an A4 page repeatedly is that ImageMagick only works with bitmap graphics, and my PDF contains text and detailed vector graphics. The result is the loss of text data, huge file size, and worse print output.

I line Convert density $ 1200 pdf_file would like to be able to do the same as the $ Pdf_file $ pdf_file $ pdf_file $ pdf_file + Add $ a4_file vector graphics Without any rastering .

OK, I have an idea how it can work, but I test this time There is no possibility to do.

Now consider these three commands (need Unix classified If you are not on Windows):

  gswin32c ^ -sDEVICE = pdfwrite ^ -o p1. pdf ^ -dFIXEDMEDIA ^ -sDEFAULTPAPERSIZE = A 4 ​​^ -r600x600 ^ -dDEVICEWIDTHPOINTS = 842 ^ -dDEVICEHEIGHTPOINTS = 595 ^ -c "& lt; & lt; / PageOffset [0 0] & gt; & gt; setpagedevice" ^ -fc : / path / / first .pdf gswin32c ^ -sDEVICE = pdfwrite ^ -o p2.pdf ^ -dFIXEDMEDIA ^ -sDEFAULTPAPERSIZE = a4 ^ -r600x600 ^ -dDEVICEWIDTHPOINTS = 842 ^ -dDEVICEHEIGHTPOINTS = 595 ^ -k "& lt ; & lt; / PageOffset [168.4 0] & gt; & Gt; Setpegedivis "^ -fc: /path/to/second.pdf gswin32c ^ -sDEVICE = pdfwrite ^ -o p3.pdf ^ -dFIXEDMEDIA ^ -sDEFAULTPAPERSIZE = a4 ^ -r600x600 ^ -dDEVICEWIDTHPOINTS = 842 ^ -dDEVICEHEIGHTPOINTS = 595 ^ -s "& Lt; & lt; / PageOffset [336.8 0] gt; & gt; Setpejediwais" ^ -fc: /path/to/third.pdf  

fled my miscalculation, the "print" your first 3 PD Fs on an A4 landscape through, but the page offset 'N for each one * (1/5 sleeve width) "transfer points, starting with n = 0. (A 4 842x595 points)

Now you have 3 (and later: 5) There should also be new PDF files without additional bitmap graphics.

Your job now Peediftik are familiar with (you) in 3 (5) to overlay one another PDF pages.

If this works for you, please give some feedback (and avoid black hole :-)).


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -