Pdf from windows prn file, MS Powerpoint, MS Excel, MS Word (On Linux).

Having a ps file of your presentation is Dandy for printing, but to send it by email it would be better to reduce the size below 10 MB.

Our mission, to make powerpoint presentation file into reasonably sized pdf. (Note all of this was done on Linux, we tried with MS XPS printed to file and fell at the ps2ps stage).

Print to file to generate a prn file (I think this is microsoft version of a postscript file). Select paper size A4. Landscape mode. Note we used postscript driver in our emulated version of windows. (Using Wine). You may need to install a postscript driver for a printer, and select that printer, before printing to file. This hasn’t been tested by the author of this blog.

Printing to Postscript in MS Office 2003 on Linux using Wine

Printing to Postscript in MS Office 2003 on Linux using Wine

Move to the linux terminal (we tried on debian lenny but these commands are very basic – install psutils if not available).

Try to clean up file by converting to postsript, not sure this is necessary or not.
ps2ps -sPAPERSIZE=a4 file.prn file.ps

If you want to put 2 pages per size use
psnup -l -2 -s.7 file.ps double.ps

convert to pdf – downsize images to make file reasonable size. Other commands to do this automatically seemed not to work (ps2pdf14 -dPDFSETTINGS=/screen)
ps2pdf -dGrayDownsampleType=2 -dAutoFilterColorImages=false -dDownsampleColorImages=true double.ps

Cross over office is a compatibility tool which helps migration away from Microsoft Windows, they provide software to let you run many windows programs on Mac and Linux. Here is a link to the cross over office site:
CodeWeavers

Advertisements

3 Responses

  1. Interesting, I wonder if you could automate the whole thing in the print system in Linux.

  2. “C:\Program Files\Microsoft Office\Office{look below}\winword.exe” “C:\My Documents\doc1.doc” /mFilePrintDefault

    Is the command to print with MSWORD from command line in windows. I haven’t tried this in Linux (or in windows!) yet.

  3. […] Pdf from windows prn file, MS Powerpoint, MS Excel , MS Word (On Linux). By Mathew. Having a ps enter of your show is Dandy for printing, but to beam it by telecommunicate it would be meliorate to turn the filler beneath 10 MB The rest is here: Pdf from windows prn file, MS Powerpoint, MS Excel, MS Word (On … […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: