On Friday 07 June 2013 02:10:00 Kent Reed did opine: > On Thu, Jun 6, 2013 at 5:01 PM, Gene Heskett <[email protected]> wrote: > > Greetings Guys; > > > > Someone mentioned that rockhopper can make .pdf > > s somehow, and those of coarse can be scaled. > > > > Since I now own an HL3170CDW color laser printer, what steps does it > > take to do this, blowing my lathe .hal file up into at least a 6 page > > output? _ > > It's deja vu all over again:-) > > I just fired up Rockhopper again with the sim/axis/axis_mm config to > remind myself that it produces the halgraph image in SVG format. I > saved the image and looked inside. Right after the DOCTYPE declaration > appears the information line > > <!-- Generated by Graphviz version 2.20.2 (Tue Mar  2 21:46:26 UTC > 2010) > For user: (kreed) Kent Reed,,, --> > <!-- Title: HAL Diagram Pages: 1 --> > <svg width="1810pt" height="2159pt" > viewBox="0.00 0.00 1810.00 2159.00" xmlns="http://www.w3.org/2000/svg" > xmlns:xlink="http://www.w3.org/1999/xlink > "> > > Great. Graphviz graciously tells us what it thinks the image size should > be (SVG is scalable vector graphics and doesn't care). You'll have to > figure out the size of the printable area on your printer. Let's say > its 8.25" X 10.75" (laugh if you must, you A4 bigots! It doesn't get > any prettier converting millimeters to points). At 72pt per inch, > that's 594pt X 774pt so the image size is roughly 3 sheets X 3 sheets. > > You can use the ImageMagick suite (available through the Synaptic > Package Manager) to create a bunch of image files of the right size out > of the original SVG image: > > convert -crop 594x774 halgraph.svg halgraph-%d.png > > Hmmm. I get 12 images, not 9. Oh, wait, my "roughly" overlooked the fact > that the image is slightly wider than 3 sheets. > > Anyway, there's your letter sheet-sized images. I tried to create the > images in pdf directly using convert but I got abnormally wide output > images. Similarly, I got strange results converting the png files to pdf > using convert. You could futz around some more to get good pdf > conversion or you can just print the png files directly from the Gnome > Image Viewer or whatever you're using. > > As a matter of curiousity, what is the width and height information in > your halgraph.svg file? I suppose if it's big enough, convert could > choke. > > Regards, > Kent viewBox="0.00 0.00 3542.00 1505.00"
So, convert -crop 594x774 halgraph.svg halgraph-%d.png Then; lpr -PHL3170CDW halgraph-*.png And I got 12 pages too. But something scaled it down from 72dpi to about 130 so the usable image per page was only 4.65" wide, so I had a lot of trimming to do when putting it together. And next time I can scale it down a bit, it would still be plenty readable on 3 edge spliced portrait images. And, I just now, 40 minutes later, got it cut out and taped together, but the last, lower right hand page has the image clipped about 2.5" worth on the bottom. So I ssh'd back into the lathe, ran inkscape, which puts a top and left marker on the image, and its that portion of the original image that is below the inkscape vertical scale bar's 0.0, but a small amount of the image is actually below that line. The missing bit feeds my pyvcp tachometer. NBD. So, I have something that while a bit fragile, does show what I have carved up in that file. Complex for a machine with two axis's and a servo controlled spindle plus an electrical probe kit for home all use. But if I have any dead ends, they aren't shown because rockhopper ignores "wires" that aren't connected on both ends. That "trash removal" could be a disadvantage as that was one of the things I wanted to be able to check quickly. Thank you very very much Kent. Hows the missus? Cheers, Gene -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) My web page: <http://coyoteden.dyndns-free.com:85/gene> is up! My views <http://www.armchairpatriot.com/What%20Has%20America%20Become.shtml> ROMEO: Courage, man; the hurt cannot be much. MERCUTIO: No, 'tis not so deep as a well, nor so wide as a church-door; but 'tis enough, 'twill serve. A pen in the hand of this president is far more dangerous than 200 million guns in the hands of law-abiding citizens. ------------------------------------------------------------------------------ How ServiceNow helps IT people transform IT departments: 1. A cloud service to automate IT design, transition and operations 2. Dashboards that offer high-level views of enterprise services 3. A single system of record for all IT processes http://p.sf.net/sfu/servicenow-d2d-j _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
