Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
gettalong
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
gettalong
4y ago
I don't think LetsEncrypt provides such a service. Additionally, the certificate must/should come from a CA that is included in the AATL ( https://helpx.adobe.com/acrobat/kb/approved-trust-list1.html ), ot
32.
▲
by
gettalong
4y ago
The problem with digital signatures is that you need to have an appropriate certificate to do this. If the documents are only used internally, then some self-signed certificates or a company-internal certificate authority would be fine. But
33.
▲
by
gettalong
4y ago
The problem with having a PDF file as template is that it gets very hard to define how new pages should be created whenever there is too much content to fit on the existing pages. E.g. line items in an invoice template. What you can do is
34.
▲
by
gettalong
4y ago
Verifying digital signatures is quite hard. Yeah, checking whether the stored hash is valid is simple but all the other things are hard, for example, whether the additions done to a signed PDF are actually allowed or not. Or whether the sig
35.
▲
by
gettalong
4y ago
If the PDF creation software supports tagged PDF, text extraction gets much easier because all the text and structural information is preserved. This also allows "reflowing" of contents, similar to how a HTML page reflows on small
36.
▲
by
gettalong
4y ago
This is what PDF digital signatures are for. They allow you to make sure that the PDF hasn't been tempered with. However, that is not there original intention. From what I remember the PDF standards groups are currently investigating a
37.
▲
by
gettalong
4y ago
So this has, essentially, nothing to do with PDFs, as what they suggest can be done with any content. And if downloading via DocSend is allowed, all the problems of their Option 1 come into play.
38.
▲
by
gettalong
4y ago
Which programming language are you using to write your LaTeX replacement? There are PDF libraries available in most languages (granted, there is wide spectrum of them with respect to how much/good they implement the PDF specification).
39.
▲
by
gettalong
4y ago
Thanks for mentioning SPARCLUR - I didn't know that one and will certainly have a look at it.
40.
▲
by
gettalong
4y ago
Just make sure that you follow the spec. Many such programs actually leave out mandatory parts of some objects, making the whole PDF invalid.
41.
▲
by
gettalong
4y ago
As others have already written, there is a free version of the PDF 1.7 specification available and using this you are (nearly) able to implement a PDF reader/writer. I wrote nearly because of the many malformed PDFs out there and bec
42.
▲
by
gettalong
4y ago
I second using the screenshot tool in Firefox. PNGs can be embedded into PDFs more or less as-is, so a PDF made from a PNG is generally only just slightly larger. Anything other than that and you will loose some formatting.
43.
▲
by
gettalong
5y ago
Safari most certainly uses macOS system functions for this and the macOS graphics system is partially based on... PDF graphics. Since that is probably optimized in any and all possible ways, I'm not surprised by this.
44.
▲
by
gettalong
5y ago
According to the [homepage]( https://www.naps2.com/doc-getting-started.html#system-requir... ) it is also available for Linux.
45.
▲
by
gettalong
5y ago
No problem, thanks!
46.
▲
by
gettalong
5y ago
5MB to 60KB seems a bit extreme for a lossless compression. Would you be able to share the original and compressed documents for study?
47.
▲
by
gettalong
5y ago
Yes, that is quite reasonable. The simple text annotations are quite easy to work with when using a PDF library and the standard tries to be backwards compatible where sensible. The PDF 2.0 standard removed some parts of PDF 1.7, like the p
48.
▲
by
gettalong
5y ago
If you want to do something like this in Ruby, have a look at HexaPDF - https://hexapdf.gettalong.org/ - which provides a full-blown implementation for reading and writing PDFs and is quite mature already (n.b. I'm the
49.
▲
by
gettalong
18y ago
I'm a little biased (I'm the author of webgen :) but I think webgen would suit your needs. You can install it via `gem install webgen`, it runs on Ruby 1.8, 1.9 and JRuby, supports Markdown/Textile/Haml/ERB/... and is easy to use: * Create