News for hackers. Stuff that matters.
Re:SumatraPDF Reader by Helmut10001 on Tuesday October 24, 2023 @04:12AM (#37996106)
SumatraPDF is among the OSS PDF tools I use.

Since Adobe is pushing a more aggressive stance for monetization of Acrobat, I am trying to replace selected PDF workflows with OSS. Here are some of the tools I use.

    qpdf
        removing passwords, unlocking PDFs, conversion
        install in WSL with apt-get install qpdf
        remove password with qpdf --decrypt --password="" input.pdf output.pdf
    PDF4QT - Open Source PDF Editing
        Deleting, Sorting, Extracting Pages
        Currently, no choco release available, must be installed manually from PDF4QT/releases
    Inkscape, LibreOffice Draw
        editing PDFs, adding text
    Mupdf
        Command line tool and Python package for parsing, filling forms, adding text
    SumatraPDF
        Viewing of PDFs
    pdfplumber
        Awesome python package to extract tables from PDFs into data pipelines. Use with Jupyter Lab
Re:SumatraPDF Reader by dustypotato on Tuesday October 24, 2023 @04:29AM (#37996241)
FYI, you can use firefox for viewing,signing, and adding text to PDFs. You can also use it to remove password (just do print to PDF after unlocking it).
Re:SumatraPDF Reader by beagle3 on Tuesday October 24, 2023 @04:42AM (#37996350)
At least as of Firefox 109, support for non Latin languages was broken to the point of being completely unusable.
Re:SumatraPDF Reader by xattt on Tuesday October 24, 2023 @09:10AM (#37998702)
128 characters ought to be enough for everybody.
Re:SumatraPDF Reader by GoblinSlayer on Tuesday October 24, 2023 @09:43AM (#37999087)
Re:SumatraPDF Reader by rstuart4133 on Tuesday October 24, 2023 @06:06PM (#38006335)
> you can use firefox for viewing,signing

I got all excited - then realised "signing" just means inserting a picture. Notably absent are open source tools for digitally signing and verifying PDF's. Apparently pdftk does it in a paid version.

It's funny in a way - in this thread we have people wanting ways to modify a PDF. Yet to me, being any to prove it's not modified (eg, it's statement provably issued by some bank saying they transferred funds to my bank on behalf of person XYZ) is far more important. Instead we have companies offering paid "document signing services" which are built on sand - you can easily forge / modify any signed document they issue.

Re:SumatraPDF Reader by ajyotirmay on Thursday October 26, 2023 @04:57AM (#38023326)
Okular. Okular offers digital pdf signing
Re:SumatraPDF Reader by quyleanh on Tuesday October 24, 2023 @04:23AM (#37996184)
Actually SumatraPDF is using MuPDF now. But there is some limitation on rendering PDF and eBook files. For example, formatting PDF file or displaying Unicode characters in epub file.
Re:SumatraPDF Reader by sebras on Tuesday October 24, 2023 @08:32AM (#37998228)
Do you mind reporting those issues either to SumatraPDF at https://github.com/sumatrapdfreader/sumatrapdf/issues or directly to MuPDF at https://bugs.ghostscript.com/ if it also has the same issue? Thank you!

There are many wonderfully weird PDFs and epubs out there, but we do our best to fix issues. :)

Re:SumatraPDF Reader by quyleanh on Wednesday October 25, 2023 @01:12AM (#38009369)
Re:SumatraPDF Reader by Steve44 on Tuesday October 24, 2023 @05:16AM (#37996577)
For extracting to tables I've been using http://tabula.technology/ for a couple of years. It seems to do a pretty good job even with some fairly complex tables and I've not had any problems with it.
Re:SumatraPDF Reader by Helmut10001 on Tuesday October 24, 2023 @11:28AM (#38000512)
Yes, tabula is the other table extraction tool. I used both and prefer pdfplumber because it is really robust and works well with Jupyter Lab.
Re:SumatraPDF Reader by silicon_laser on Wednesday October 25, 2023 @05:59AM (#38011124)
you can also use okular for visually select a table from a pdf and paste it in sone excel kinda software and okulars table select tool is not too bad
Re:SumatraPDF Reader by mkl on Tuesday October 24, 2023 @05:34AM (#37996709)
PDFTK and pdfjam are two other useful command line tools. I use PDFTK for merging PDFs, extracting/deleting/duplicating pages, and decompressing so I can extract and manipulate text/data in raw PDF commands. I use pdfjam for n-up and adjusting page size and margins.
Re:SumatraPDF Reader by djbusby on Tuesday October 24, 2023 @10:34AM (#37999716)
PDFTK can choke on some merges, some newish pdf features. In those cases one can use Ghostscript to merge and other manipulation.
Re:SumatraPDF Reader by tjrgergw on Tuesday October 24, 2023 @06:03AM (#37996864)
I use xournal to add signatures (just pngs) and text to pdfs.
Re:SumatraPDF Reader by acqq on Tuesday October 24, 2023 @06:15AM (#37996936)
I like k2pdfopt for reformatting pdfs for my e-reader.

I've also used poppler's pdfimages but I'd prefer like something less buggy for my use case; any version had problem with one pdf made by Adobe InDesign.

Re:SumatraPDF Reader by PhilippGille on Tuesday October 24, 2023 @06:22AM (#37996981)
You mention qpdf not available in Chocolatey, but it's available in Scoop, which is another Windows package manager: https://github.com/ScoopInstaller/Main/blob/master/bucket/qp...
Re:SumatraPDF Reader by SushiHippie on Tuesday October 24, 2023 @07:10AM (#37997356)
For other distributions / OS / package managers see here: https://repology.org/project/qpdf/versions
Re:SumatraPDF Reader by systems on Tuesday October 24, 2023 @11:38AM (#38000662)
seem to be available on winget too

   > winget search qpdf
   Name Id        Version Source
   ------------------------------
   QPDF QPDF.QPDF 11.6.3  winget
Re:SumatraPDF Reader by qwerty456127 on Tuesday October 24, 2023 @06:22AM (#37996985)
Also take a look at Okular. It's the only PDF reader I've seen to let you select a specific column in a table.
Re:SumatraPDF Reader by deepspace on Tuesday October 24, 2023 @11:00AM (#38000153)
Okular is my go-to document reader across operating systems. In addition to PDF, it can open EPub, DjVU, JPEG, PNG, GIF, Tiff, WebP, CBR, CBZ, DVI, XPS, ODT and other formats.
Re:SumatraPDF Reader by dustingetz on Tuesday October 24, 2023 @06:28AM (#37997026)
how can i sign and date a PDF with a bitmap signature without 9999 janky clicks
Re:SumatraPDF Reader by ed_balls on Tuesday October 24, 2023 @07:18AM (#37997421)
META: What's the best way to convert pdfs to CSV/excel? Any new LLM tool?
Re:SumatraPDF Reader by emeril on Tuesday October 24, 2023 @08:42AM (#37998343)
abbyy finereader 8.0(!!!)

good luck finding it

Re:SumatraPDF Reader by justsomehnguy on Tuesday October 24, 2023 @11:50AM (#38000866)
It's funny what you are downvoted, but FR8 was way better OCRing Office-printer-scanned documents even against the much later versions of FR, I saw the comparison on the same source documents.

> good luck finding it

It's still available on the trackers.

Re:SumatraPDF Reader by enthdegree on Tuesday October 24, 2023 @12:38PM (#38001649)
[delayed]
Re:SumatraPDF Reader by Helmut10001 on Tuesday October 24, 2023 @12:12PM (#38001250)
I think the best way to convert pdfs to tabular data is using pdfplumber together with a pandas (dataframes) workflow and writing results to CSV.
Re:SumatraPDF Reader by MilStdJunkie on Tuesday October 24, 2023 @02:29PM (#38003244)
Tabula
Re:SumatraPDF Reader by xinayder on Tuesday October 24, 2023 @08:09AM (#37997975)
You can also use Okular to open and edit PDFs, it's the document viewer from KDE.
Re:SumatraPDF Reader by nolok on Tuesday October 24, 2023 @08:32AM (#37998217)
May I recommend NAPS2 ? https://www.naps2.com/

It's like PDF4QT but works and feel better to me.

Re:SumatraPDF Reader by magical_spell on Tuesday October 24, 2023 @10:55AM (#38000046)
Pdf-tools in Emacs is also great.
Re:SumatraPDF Reader by ParetoOptimal on Thursday October 26, 2023 @12:26AM (#38021591)
And it has a killer feature:

pdf-view-themed-minor-mode

It matches the pdf style/colors to your emacs theme! Sort of like a dark reader for pdfs, but it automatically adjusts to any theme based on some good but likely imperfect heuristics.

Re:SumatraPDF Reader by georges_gomes on Wednesday October 25, 2023 @02:29AM (#38009816)
To edit PDFs in Figma, it exists pdf.to.design now. https://pdf.to.design
Re:SumatraPDF Reader by nirav72 on Wednesday October 25, 2023 @10:08AM (#38012968)
Adobe Acrobat reader installer is also almost a 1 gb download these days. One thing I do find that Acrobat does better is compression. I can usually reduce a PDF down to about 30%-40% of its original size without much loss in quality. I've tried other tools and they haven't worked nearly as well.