- Select 11x17 paper size in QCAD for my drawing.
- Use print preview to line up and scale the drawing on the page.
- Export the drawing as a postscript file. I exported one .ps file for each page in my PDF. Now I have a bunch of postscript files laying around my filesystem named 1.ps, 2.ps, and 3.ps.
- Use ps2pdf with some options to generate individual pdfs of each page. I found a very helpful post on a blog called The Open Access Peon.
I executed essentially the following commands a few times:$ identify 1.ps
1.ps PS 791x1223 791x1223+0+0 DirectClass 16-bit 52.9277kb$ ps2pdf -dDEVICEWIDTHPOINTS=791 -dDEVICEHEIGHTPOINTS=1223 1.ps
That last command gave me the following PDFs: 1.pdf, 2.pdf, 3.pdf) - Use pdftk to cat all the resultant PDFs together:
$ pdftk 1.pdf 2.pdf 3.pdf cat output schematic.pdf
Result: schematic.pdf - Rotate the pages of the result 90 degrees CW:
$ pdftk schematic.pdf cat 1-endE output schematicnew.pdf
Result: schematicnew.pdf
I'm pretty sure those last pdftk commands could be collected together, but that exercise is left to the reader.
Ultimately, one could develop a workflow with scripts that would build a PDF document from a dxf file using QCAD.
It should be noted that the panel we are going to wind up with is fairly different than the example given in this post.

3 comments:
How did you export to .ps?
Jim
You should be able to find it in the print options. You can either print to a printer or to postscript.
The one place I didn't look, of course! Thanks for the lead, and thanks for the article.
Jim
Post a Comment