Printing Sketch: Even PDF file is mangled

Hello -

I am sorry to post this seemingly dull question, but Google nor anything else yielded a solution to this problem...

All searches yield to OLD posts (circa 2010, 2011) that terminate with "it doesn't work and I can't fix it" so "Copy it and paste it into MS Word". Is this really where we are in 2014?

When I print source code from withing the IDE, I get output that is chopped off even in a PDF file not just directly to my printer (in other words this is not a printer issue). Yes, I use the Page Setup, no I don't want to use Landscape mode (it doesn't solve the problem just changes the details anyway). Scaling the output to fit within the margins either by font size or whatever, numbering pages, headers/footers...?

Seems like this is a basic function so I feel I must be missing the obvious.... I too try to avoid printing things out, but occasionally it is helpful.

My IDE is Arduino 1.0.5-r2 and I am running on a Windows system

Any guidance would be greatly appreciated.

Thank you. :slight_smile:

Mike

I copy paste into Notepad or Wordpad, then print in landscape to prevent a lot of linewrapping.

mikeworkman:
Is this really where we are in 2014?

mikeworkman:
When I print source code from withing the IDE...

Hehehe... why do you need to print the source if we are in 2014? To fax it?

Thanks for the joke....

Not helpful, but thanks anyway. I ran out of stone tablet media for my old Fax so have upgraded to a chain printer which I borrowed from my CDC 7600 Mainframe.

Yes there are times when old fashioned paper helps me think things through....and I don't always have access to my dual monitor fancy setups or a nice big screen. From your picture you look a lot younger than I am - good for you - but as you get old staring at a screen can get tiresome at times....

Sorry to bug you with this... :slight_smile:

Mike

Well, it was just a tiny joke related to your 'Is this really where we are in 2014?' comment. I keep a little unnofficial modded version [MOD] Arduino Enhanced Release 1.0.5 for Windows (installer, drivers, etc) +SRC - Libraries - Arduino Forum and and I think I can add something for the printing to an upcoming update.

What is your suggested fix? Automatic wrap when printing?, warn the user about limits?, check printer margins?

I use an external editor (not the Arduino IDE) for creating my code. That means I can print whenever I want AND I have a much better editor (in my case I use Gedit on Linux, but other options are available).

One of the tick-boxes in the IDE Preferences allows you to use an external editor. The IDE doesn't care which. It just reads the latest version of the file before verify/upload.

I use the IDE for verifying, compiling and viewing in the Serial Monitor in the normal way.

...R

Thank you for the posts.

Just the fact that someone didn't say "Oh, you need to update your print reference file...." or something like that makes me think that although old fashioned (wanting to see printout occasionally), I'm at least not nuts - or alone.

Eried - thanks for the questions - any of those seems reasonable - scaling to fit within margins by reducing font size, specifying font, and wrapping, would all work for me.

I will check out your suggestions too Robin2 - and thanks. I always think that if you are running Linux there are a lot better options than in Windows for programming tools. Folks that work in my group at Oracle have many differing preferences - some even use EMACS which I used 25 years ago on Sun workstations when I wrote my thesis!

Thanks to both of you - I will figure out something - maybe just cutting and pasting since I do this so occasionally anyway.

Mike