Skip to content

PDF-XChange Editor watermarks leave non-visible URL links in top left/right corners #4

Description

@warren-bank

notes:

  • this occurs when removing the watermark from a document with compatibility level >= PDF 1.5
    • below this level:
      • links are in clear text and easily filtered
    • above this level:
      • links are zlib compressed within FlateDecode objects
      • the search pattern removes the visible watermark, but leaves behind non-visible URL links

workaround 1:

  • try using the command-line option: --unzip
    • bash:
      ./filter.sh --unzip
    • Windows:
      call filter.bat --unzip
  • open out.pdf in a PDF Viewer
    • confirm that the non-visible URL links are gone
    • confirm that everything else is intact
      • filtered objects (zlib compressed or otherwise) can contain more document elements than you may wish to remove
    • resave document to clean up removed/missing objects
      • File > Save Copy As..
      • File > Close

workaround 2:

  • open the pdf document in a text editor
  • change the first line to: %PDF-1.4
  • save
  • open the pdf document in PDF-XChange Editor
    • File > Save as Optimized:
      • Make Compatible With: Version 1.4
      • No Downsampling
      • Compression: Retain existing
    • File > Close All
  • rename pdf document to: in.pdf
  • run: filter.pl
  • open out.pdf in a PDF Viewer
    • confirm that the non-visible URL links are gone
    • confirm that everything else is intact
      • forcefully lowering the compatibility level can cause some features to break
    • resave document to clean up removed/missing objects
      • File > Save Copy As..
      • File > Close

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions