topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 19, 2024, 6:42 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: PDF Cooker wanted... Let me explain  (Read 3722 times)

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,017
    • View Profile
    • Donate to Member
PDF Cooker wanted... Let me explain
« on: July 24, 2007, 06:33 PM »
OK, here's the situation.

I work at a small shop where a great deal of what we do is printing house plans on a large copy machine.
Typically, I get HPGL2 plot files, PDF's, TIF's, etc. that I then print for submittal to contractors, permit officials, etc.

Here's the sticky: Sometimes I get PDF's that are created with AutoCAD or something that preserves all the vector info and layering, which crashes my print system if there is too much to interpret. When I try to print with Adobe reader, it pops up a dialog that says "Flattening - " with a progress bar.

These are the only files that give me trouble, and I wonder if there is:
1- some sort of software (preferably freeware) or
2- a ghostscript process method
to "pre-flatten" these stupid things before they bog my machine.
Any suggestions?

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
  • c++thorpe
    • View Profile
    • Donate to Member
Re: PDF Cooker wanted... Let me explain
« Reply #1 on: July 24, 2007, 09:34 PM »
Looks like PDFTK might be able to help you, and it's open source:

http://www.accesspdf.com/pdftk/

The command might be something like this:

pdftk borkedpdf.pdf output fixedpdf.pdf flatten

It's a command line program, so no screenshots.

Edvard

  • Coding Snacks Author
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 3,017
    • View Profile
    • Donate to Member
Re: PDF Cooker wanted... Let me explain
« Reply #2 on: July 24, 2007, 10:24 PM »
Yeah, I use PDFTK all the time, totally rocks... but If I recall correctly, 'flatten' doesn't work like it would seem. The PDFTK documentation states that the "flatten" directive is meant to fill in form fields, not flatten layers.
[flatten]
         Use this option to merge an input PDF's interactive form   fields
         (and their data) with the PDF's pages. Only one input PDF may be
         given. Sometimes used with the fill_form operation.
I'll try again and report back, but I believe I have already tried this.

cthorpe

  • Discount Coordinator
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 738
  • c++thorpe
    • View Profile
    • Donate to Member
Re: PDF Cooker wanted... Let me explain
« Reply #3 on: July 24, 2007, 11:55 PM »
This page has a javascript file that will give you menu options in Adobe Reader for flattening...

http://www.linetype....vice/cad/flatten.htm

Flattening PDF Annotations

PDF files can contain two different types of data -- graphics and annotations.  Graphics are static images -- text, vector drawings, or raster images.  Annotations are interactive objects that have a graphic associated with them.  Stamps, redline comments, sticky notes, digital signatures, and form fields are all examples of annotations.

...

Although the interactive features of annotations can be very useful in some situations, at other times it may be desirable to disable this interactivity and turn the annotation into a simple graphic that cannot be changed or deleted so easily.  This is called "flattening" the annotation.

Carl
« Last Edit: July 24, 2007, 11:57 PM by cthorpe »