4 ms·
> I want to rely on professional typesetting from the publishers, not some front-end engineer's vision of what the ebook should look like and how it should be p
by inetknght 6y ago
> I want to rely on professional typesetting from the publishers, not some front-end engineer's vision of what the ebook should look like and how it should be presented to the user.
I, on the other hand, do not whatsoever trust publishers. PDF runs software and that means that everything under the sun including malware and DRM can run on PDF -- and indeed that has occurred many times. It should be a non-starter for anyone who actually values the ability to read their content on any device they want.
- systemvoltage 6y agoThere are many other formats, a myriad of text formats from asciidocs to markdown. For embedded devices and such, they work great I presume. Please don't mess with PDFs. 20+ year old technology that is shitty but works, I prefer keeping the status-quo.
- x86_64Ubuntu 6y agoIf PDF had an "accident", and someone was able to do to it what Steve Jobs did to Flash, I would be very happy.
- systemvoltage 6y agoAre there any other "fixed" or "docker-like" formats for documents besides PDFs that solves a lot of problems with PDF format? From what I understand, PDF is an xml based document standard.
- pjmlp 6y agoNope, PDF doesn't have anything to do with XML.
- arthur2e5 6y agoYou are thinking about XPS, Microsoft's OOXML-based page description language.
- kall 6y agoAre web pages/archives really less fixed than PDFs if you don‘t want want them to be? I mean I know they are in practice, but I don‘t see why you couldn‘t use them as a fixed document format. Some contracts may need to be upheld between creator and consumer. If the consumer doesn‘t want to, well, that‘s freedom, isn’t it? Of course it is the most code executing document format to ever execute code, so if that was the issue... Is postscript (that‘s what PDFs are ultimately right?) capable of thing‘s that HTML+CSS+SVG isn‘t? Edit: Oh no I completely blanked on the fact that web pages literally don‘t have pages. Seems like a big one.
- simion314 6y ago>Are web pages/archives really less fixed than PDFs if you don‘t want want them to be? I mean I know they are in practice, but I don‘t see why you couldn‘t use them as a fixed document format. Web content is not that fixed, same code can redner different in different browsers this is why sometimes we need to use some css reset rules to attempt to make stuff render as similar as possible. What is great with PDF it that it should look and print the same everywhere, I always have issues withfor example .doc files that don't look and print the same on my machine as the sender one and it is just a few lines of normal text, nothing fancy. So a PDF replacer should be identical on all machines this means a extremely strict specifications with no place where implementation could deviate a pixel.
- systemvoltage 6y agoYea, you can use `position: fixed` or `position: absolute` with CSS + HTML but as you said, it doesn't dictate pages. Although, now that I think about it, why do we need pages :) Just fixed layout is good enough.
- leephillips 6y agoThe pdf2htmlEX program does this. It creates exact renditions of PDFs in HTML, using embedded fonts and positioning each character. Personally, although it’s an amazing demonstration, I don’t really understand the purpose, when you can just distribute the PDF. https://github.com/coolwanglu/pdf2htmlEX https://github.com/coolwanglu/pdf2htmlEX
- pjmlp 6y agoYou mean setting back the Web 10 years behind, with WebAssembly still not exposing everything that Flash + CrossBridge were capable of, and all the Web tools that try to replicate Flash IDE still don't come close to it in HTML5? Nah, better leave PDF as it is, we don't need any accident.
- Technically 6y agoSorry, what did Jobs have to do with Flash? He died long before flash did....
- Wowfunhappy 6y ago> PDF runs software and that means that everything under the sun including malware and DRM can run on PDF -- and indeed that has occurred many times. You can basically avoid this problem by only opening PDFs in programs like Preview and Evince, and never Acrobat.
- dvfjsdhgfv 6y agoNot really: https://www.cvedetails.com/product/23592/Gnome-Evince.html https://www.cvedetails.com/product/23592/Gnome-Evince.html
- tjohns 6y agoHaving vulnerabilities is never great. However, this is a separate issue from whether the PDF reader explicitly allows code execution or supports some of the more obscure PDF extensions, which is what the parent was talking about.
- dec0dedab0de 6y agoisnt including fonts basically code execution in and of itself?
- junon 6y agoAside from potential vulnerabilities (bugs), no. Font formats are declarative. The various tables that define conditionals et al have no ability to run arbitrary code, and certainly do not have any concept of scripting and the like.
- dialamac 6y agoTtf has bytecode for a stack interpreter with conditionals and loops (jump instructions and loop all). That’s declarative in the sense that all code is data, but i would say it is imperative.