Could not find how to do it with qpdf or pdftk or even a gui tool.

Edit: Solution pdftk A=oldpdf.pdf cat A output newpdf.pdf This removes all metadata and also the attachments.

  • Fox@pawb.social
    link
    fedilink
    English
    arrow-up
    4
    arrow-down
    1
    ·
    11 months ago

    I’ve used LibreOffice Draw before to remove content from PDF files without reprinting

    • antiheroOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 months ago

      Yes but in my case the pdf file is big and I libreoffice draw hangs. Also i found another solution (added that to post).