Not related to inkscape, but here are the methods I've figured out to merge and cut up PDF documents with Linux:
1. I've had good luck merging PDF documents together with the pdftk utility, you can pick and place specific pages, rotate, and do all sorts of other transformations. ie:
pdftk A=file1.pdf B=file2.pdf C=file3.pdf cat A B1-5 C1R output output.pdf
2. For splitting a PDF into sub-pages, I've had good luck with using ghostscript to do that sort of editing. For example, if I want to split a standard letter size page into two PDFs, I can do something like this:
gs -o "top_half.pdf" -sDEVICE=pdfwrite -g6120x3960 -c "<</PageOffset [0 -400]>> setpagedevice" -f "input.pdf"
gs -o "bottom_half.pdf" -sDEVICE=pdfwrite -g6120x3960 -c "<</PageOffset [0 0]>> setpagedevice" -f "input.pdf"
To find the dimensions of your page, you can run this command, which uses the pdf_info.ps file from the ghostscript source code:
gs -dNODISPLAY -q -sFile=input.pdf -dDumpMediaSizes -dDumpFontsUsed -dShowEmbeddedFonts pdf_info.ps
Look for a line similar to this one: Page 1 MediaBox: [ 612 792 ]
Then you have to multiply these numbers by 10 to match the units used by ghostscript.
Hope this helps, Matthew Beckler
On 03/01/2011 07:02 AM, donn wrote:
Anyone know how I could layout/hack a single Inkscape SVG file so that I can get a multi-page PDF out the other end?
Inkscape -> layout tricks (maybe layers?) -> some process (maybe command line) -> PDF file with pages.
At the moment I am laying-out logos and designs on a single 'page' which can be as tall as 9000 pixels.
Is there a way to 'chop' a single PDF page like that into smaller chunks?
\d
Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user