Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Q.: pdftk "flatten" syntax ... ?

4,345 views
Skip to first unread message

tlvp

unread,
Jun 20, 2012, 7:31:23 PM6/20/12
to
I'm having trouble trying to flatten a pdf bearing an interactive form
field that is really just a ruse for embedding a little logo into the page.

I command as follows:

: pdftk infilename.pdf flatten output outfilename.pdf

but pdftk complains thus:

> Error: Unexpected command-line data:
> flatten
> where we were expecting an input PDF filename,
> operation (e.g. "cat") or "input_pw". Exiting.
> Errors encountered. No output created.
> Done. Input errors, so no output created.

What am I overlooking, missing, or doing wrong?

Thanks! And cheers, -- tlvp
--
Avant de repondre, jeter la poubelle, SVP.

tlvp

unread,
Jun 20, 2012, 8:00:19 PM6/20/12
to
On Wed, 20 Jun 2012 19:31:23 -0400, tlvp wrote:

> I'm having trouble trying to flatten a pdf ...
>
> I command as follows (spaces doubled for legibility):
>
>: pdftk infilename.pdf flatten output outfilename.pdf
>
> but pdftk complains ...

Heh-heh ... that may be the right syntax for lots of other pdftk actions,
but not for *flatten* ... for flatten it has to be:

: pdftk infilename.pdf output outfilename.pdf flatten .

Thanks for providing the venue where, by showing I needed to ask, I both
configured the egg on my face and (thereby) met the prerequisite for
solving my own problem (Mother Nature *never* lets me dope out how til I've
made a public spectacle of myself -- that's just Mother Nature's way :-) ).

Cheers, and thanks for your mere comforting presence here, -- tlvp

nisp...@gmail.com

unread,
Jun 8, 2018, 6:15:08 AM6/8/18
to
Thanks for this. pdftk command line is ugly. Ugly.
0 new messages