Live data from Hacker News

SumatraPDF Reader

github.com

241–250 of 276 posts

Re: SumatraPDF Reader

#241

Earlier quoted context omitted.

Honestly, this is a guy who uses GDI, so most of the above options will feel bloated already when looking at the source tarball sizes. That said, has there been any fundamentally groundbreaking crossplatform classic UI toolkits released since the 90s? (IMGui is the only one that has seemed interesting but that's specialized and not a general one really)

There are plethora of cross-platform UI toolkit, each have their own philosophy. IMO, current popular toolkit have declarative aspect in it. Believe or not the most mature UI toolkit is the one built for chromium. It just works everywhere. EDIT: Another commenter suggest only office as example. IIRC, they are building it using chromium as front-end and .NET as backend.

I think that's the sticking point, declarative toolkits didn't mesh too well with C++(or C) projects so we have a bunch in Rust but that's not too interesting for those with existing codebases, I started on a C++ 20 prototype myself a few years back (because to make it even remotely elegant I felt that I wanted designated initializers from C++20) but it kinda turned into a huge hairball of templates to even approach something like react style jsx/tsx rendering.

I'm pretty sure that something based on IMGui could be more or less isomorphous to React style rendering, it'd be up to someone to implement it though (and it'd probably be worth it since building applications at scale you win back a lot of time by not fiddling with state manually all over the place).

Using Chromium however is explicitly not where we should want to go (it's basically a kitchen sink in itself), but we go there anyhow (me included often) because it's just so much more quick thanks to progress in dev experience in the webdev area.

Re: SumatraPDF Reader

#242
post #24

Earlier quoted context omitted.

No joke. Yesterday I found out PDFs can have forms with JavaScript. https://tcpdf.org/examples/example_014/ How does this even work?

I remember someone wrote a game in a PDF document...

I think this is it: https://github.com/osnr/horrifying-pdf-experiments

Re: SumatraPDF Reader

#243

Wow, I just installed this for the first time and its performance blows both Adobe Reader (not an achievement) and Foxit (something of an achievement) out of the water! Nice work by these devs. And its install footprint is around 10% of those programs. What the hell is Adobe doing, I wonder, that makes their software so unbearably slow and painful to use?

https://old.reddit.com/r/geek/comments/ddh5p/comment/c0zfics...

Re: SumatraPDF Reader

#244

Is there any open source seamless PDF editor available given how pervasive is the PDF document nowadays? I really think that we need one and it has been long overdue. What I meant by seamless is that all of the open source software that currently able to edit PDF document is dong it in a clunky way at best for example Krita and LibreOffice Draw. The resulting edited output document also is also looks distinct, in a b…

Maybe not exactly what you are looking for, but take a look at Stirling-PDF. https://github.com/Frooodle/Stirling-PDF

Great tool, easily self hosted for the family, their rare beyond viewing PDF needs don't warrant to install anything.

Re: SumatraPDF Reader

#245
post #162
post #108

Earlier quoted context omitted.

> The problem is that Gtk is ugly, Qt is extremely bloated and WxWidgets barely works. Seems like the author didn't look at cross-platform toolkits since 90s.

(I wrote the post). That's fair in the sense that I did not look closely at latest Gtk or Qt or WxWidgets. That being said they certainly did not get lighter. Last I checked Qt was over 10 MB of libraries). Sumatra is 12 MB and I'm guessing over 8 MB is fonts needed to render PDF documents. So just Gtk or Qt code would be more than the whole app. Latest Gtk4 does seem to look nice so maybe calling it ugly was uncalle…

If you are counting MBs at that order, then wxWidgets would be the best option. It can be statically linked easily. The size overhead is about 2.5-3 MB. It is a thin wrapper on top of native controls, so e.g. you can always get to the underlying HWND on Windows. Even for the Windows only app, I'd still pick it due to the sane API.

Re: SumatraPDF Reader

#246

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, S…

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).

> 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

#247
post #160

Earlier quoted context omitted.

(I wrote that blog post). What I was trying to say is: there's dogma about tests and code reviews. At Google you would get fired for suggesting skipping code review. Even at smaller Silicon Valley companies (smaller == less than 10 devs) it's unthinkable to not do code reviews. I haven't worked outside SV so it might be different. That's the dogma. My point is that maybe we should apply a bit of common sense on top o…

I work in Health IT here in Germany and for the past 3 years we've been "testing" those "smaller companies" for different parts of our business. It's a mess. We've been paying them serious money for a product. We've never been warned that their product isn't finished yet or that we're the beta testers for the product they'll sell to other clients. Or that we have to invest our own personal and their time to fix their…

What "older and larger" company do you have in mind? What ever you do, never choose CGM! They wouldn't even be able to spell "test" if their live depended on it! Nothing new ever works, like at all. Everything older needs at least one or two server restarts a day!

Re: SumatraPDF Reader

#248

Earlier quoted context omitted.

I don't believe it's a risk, since you're not injecting arbitrary remote code into a document, you're more overlaying on top of it. Even if the reader wants to execute code, then it will, that's how you have a reader to begin with. As long as it's not the PDF itself (source document) deciding to execute inline code, you should be fine.

What does it matter if it's displayed in the document or in an overlay window or if it's saved in the document or not? That code could try to do anything; many PDF readers have a security option to prevent opening any remote documents or links.

Why do you think there is remote code execution? Without being familiar with that code (or evince code, which does the same thing) I can almost guarantee there is no such thing (what even would they be executing and why?).

Re: SumatraPDF Reader

#249

Earlier quoted context omitted.

> SumatraPDF displays pretty much any PDF you throw at it, just way more options and stuff Sumatra includes a 3D renderer to display embedded CAD models? https://helpx.adobe.com/acrobat/using/displaying-3d-models-p...

I understood "pretty much" as "most" but not "all". I've been viewing PDFs for 20+ years and never encountered one with 3D content so ”pretty much” seems like a good adjective to use here for me.

In engineering and manufacturing it's an essential feature used daily.

Re: SumatraPDF Reader

#250
post #8

I have the bad habit of keeping many PDF files in the reader open (yeah, I keep reading long books). The thing is when I open Sumatra for a new file (maybe only for a quick glance) Sumatra will reload all my files and slowed the startup significantly. I wish I can set the option which will load only if I’ve actually switched to the tab, just like Firefox.

This can be controlled when use the "Advanced Options". It opens a config file where you can set: RememberOpenedFiles = false https://www.sumatrapdfreader.org/settings/settings3-4-6

Thank to your suggestion, I figured out a workaround:

- RememberOpenedFiles = true

- RememberSettingForEachFile = true

- RestoreSession = false

So Sumatra will open the new file without the ballast of the past. But if you click on an old file, it will open and go to the last position for you to continue. Right now one can not change the number of recent files list, nor can one replace the frequent access list with recent list, but I can live with that. Hopefully somebody could make these options.

Post reply on HN