Mobile app version of vmapp.org
Login or Join
Gonzalez368

: How can I prepare lots of code to be printed on a long scroll? What I'm trying to do: I have lots of software code that I need to print on a long scroll. The scroll will be no more than

@Gonzalez368

Posted in: #AdobePhotoshop #PrintDesign

What I'm trying to do:

I have lots of software code that I need to print on a long scroll. The scroll will be no more than 440mm wide and as long as it needs to be (with a maximum of 45m). The resulting code listing is to be part of an exhibit contrasting the ‘sketching’ phase in a multidisciplinary project between design, social science, and software engineering.

What I've tried:

• Printing straight from the IDE

I cannot print straight from the development environment (Visual Studio 2012 and SQL Server Management Studio) because:


Both tools assume standard page sizes
I need to rotate the software code listing 180 degrees so that the end of the listing is at the tail of the paper roll.


• Using Photoshop

Since, I can't print from the IDE, I’m doing it in Adobe Photoshop (CS5, 64 bit, on Windows 8). My workflow for this is verging on the ridiculous:


First I cut-and-paste each file from the code editor into a Microsoft Word document. If I cut-and-paste the code listings into PS/Ai I lose the formatting (for example the coloring of comments differently form variable declarations)
I save the Microsoft Word document as a PDF and open that into Photoshop (to preserve the formatting)
I now have 51 PSD files, each with one layer containing the text for that ‘page’. It’s rasterized layers as it is not editable as text
Using Adobe Bridge I open all 51 PSD files created in step 3 and “Load Files into Photoshop Layers” so that I have a new single Photoshop file with all 51 text image layers in.
The layers sit on top of each other. What I need is for them to sit head-to-toe. I don’t know how to do this without spending a million years selecting layers and moving them by hand.
If I ever get Stage 5 done I will then group the 51 layers and rotate the result through 180 degrees.
I will then re-size the result to have a width of 400mm and print the resulting file on our banner printer, having first calculated the resulting paper ‘height’ and turned off the automatic paper cutting.


My Questions:


Is there a better way of doing this?
I can see the Photoshop actions that will align layers by their tops, their bottoms, or their centers but how do I automatically align them so that the bottom of layer 1 touches the top of layer 2, the bottom of layer 2 touches the top of layer 3, etc.?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gonzalez368

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ravi4787994

Using Illustrator

You're on the right track, but Photoshop is not the way to go for huge files like this. Illustrator will be able to handle text much better.

The Good News

You can import formatted text into Illustrator! (steps below)

The Bad News

You're going to run into a road block: the maximum document dimensions (in CS5 at least) is 5779.55mm. I don't know how long your banner is actually going to be, but that's about 39m shorter than your specified maximum print size.

The Steps:

So, if your code will all fit in a 5.7m document:


Paste your code from the code editor into Word (as you have done previously)
Save it as a Rich Text Format (RTF) document†
Open the RTF document in Illustrator
Your text will be clipped in a shape, but you can re-size the shape as necessary


The result will be editable text in Illustrator that maintains the IDE code formatting:



† Note: Illustrator can open native Word files (.doc/docx), but this gave me some weird newline issues. Your results may vary.



Using a PDF printer (maybe)

If you have Adobe Acrobat (or similar PDF printer), you should be able to print your document with a custom page size. The dialog is a little hard to get to, but it should look something like this:



This is how I got there:


File → Print (in Visual Studio)
Select Adobe PDF as the printer (from the dropdown)
Click Properties
From the Paper/Quality tab, click Advanced
In the Paper Size dropdown, select PostScript Custom Page Size


The Good News:

You'll be able to select a very long height, up to 635 meters!

The Bad News:

Printing from Visual Studio may or may not preserve the text formatting. I only have VS2010 express, where this is not a feature. However, it might work for you in VS2012.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme