Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compressing Really Large Postscript and PDF Files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Milez
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2002
Posts: 116
Location: Atlanta, GA

PostPosted: Fri May 14, 2004 6:54 am    Post subject: Compressing Really Large Postscript and PDF Files Reply with quote

I just figured this out, and maybe I'm the only one who this will help, but I think it's a cool trick.

My problem was that I had some postscript (ps) files that were wayy too large. This is because I am doing some physics research, and plotting graphs with about 40,000 data points on them. Problems ensued when I converted the ps files to pdf for printing, only to have the printer choke on the enormous files.

Every method I tried to make the files smaller resulted in a huge loss of quality until I figured out this method:

1) If the file is a ps, convert to pdf via ps2pdf.
2) Open the pdf file in acroread, and print to a file (somefile.ps) - make sure to check the "Save Printer Memory" box at the bottom!
3) Print the pdf to the ps file. If you want a pdf back, use ps2pdf again.

Using this method reduced the size of my ps file with very little loss in quality! And the best part was that repeating the process over again made it even smaller.

Anyway, I think it's a cool trick.
_________________
-=Miles Stoudenmire=-

Adopt a post initiative
Back to top
View user's profile Send private message
m33sb3w
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2002
Posts: 96
Location: Villanova, PA

PostPosted: Sat May 15, 2004 12:32 pm    Post subject: Reply with quote

That does sound cool...I'll have to try it, thanks.

What's your research in?
Back to top
View user's profile Send private message
tactless
l33t
l33t


Joined: 14 Jul 2002
Posts: 642
Location: Mitzpe Adi, Israel

PostPosted: Sat May 15, 2004 9:40 pm    Post subject: Reply with quote

Any way to do this with F/OSS software? Preferably ghostscript itself...
_________________
Tactless

"If it wasn't for fog, the world would run at a really crappy framerate."

Jabber: tactless@amessage.info
Back to top
View user's profile Send private message
Milez
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2002
Posts: 116
Location: Atlanta, GA

PostPosted: Sun May 16, 2004 4:03 am    Post subject: Replies Reply with quote

Hmm, no I don't know of any way to do this with open source stuff. I was trying to do it with ghostscript and its related utils, but with no luck.

My research at the moment (I am a physics undergrad at GATech) involves the behavior of layers of superconducting material sandwiched between ferromagnets (permanent magnets). The layers all interact, and the total magentic field they "feel" tend to pull them out of the superconducting state. We're graphing the critical temperature (temp at which the system goes superconducting - something like 80 degrees above abs zero) against the external magnetic field applied. Another twist is that for low applied magnetic fields, one of the permanent magnets can switch its magnetization to the other direction, causing a jump in the graphs. The way we figure out all of this behavior is pretty simple - look at a formula for the energy of each state, and find the temperature that makes this energy lowest. My computer program does this and graphs the results, making some really huge postscript files when there are thousands of points graphed!

Another thing I was doing earlier this semester was a chaos lab for my physics lab class. I plotted that famous bifurcation diagram for the logistic map (looks like a graph of lines that fork starting from the left), which only looked good if you plotted tens of thousands of points. My ps file was about 18 megabytes and nearly killed the printer in the school library. I wish I had figured out this trick then!
_________________
-=Miles Stoudenmire=-

Adopt a post initiative
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum