How can I flatten using docpub and PWS credentials?

Q:

I wish to perform flattening using docpub and PWS credentials. How can I do so?

A:

You should be able to flatten using docpub. For example, you could run:

docpub.exe -f pdf --flatten simple mydoc.pdf -o output

You can find instructions for running docpub with PWS credentials at https://www.pdftron.com/pws/onpremise.html. Specifically:

If you are using one of the Tools CLI, edit the .lic file in a text editor and provide your PWS credentials.

For example, if you are using DocPub:

  • Open ‘docpub.lic’ in a text editor.
  • Fill-in API_ID and API_Secret that you obtained via email. You can also find the same information under ‘Account’ section in your PWS account.
  • any conversions you perform will be free from demo stamps and will be reported in your PWS management console (https://api.pdftron.com/v2/console).
  • To continue using docpub in demo mode for development and testing, simply rename ‘docpub.lic’ to ‘docpub.lic.demo’.