Thanks for fast reply!
I guess, I should stick to last one. Is it ISO 32000-1:2008?
All this PDF was manufactured (by hand).
1. It was in PDF that I've taken as example and tried to reverse-engineer.
2. Sorry, forgot to check. I've copied this from my obj-c code. That's why they are mostly one-liners.
3-4. Thanks, will try to dig this.
How should I specify null value in /Contents ? IIRC, this value will be omitted, if null is present. However, It is required.
This PDF is just a small Proof of concept, that this piece of generated pdf will work on almost all mobile platforms.
Edit: hmm, strange. At page 146, PDF Reference, version 1.7 in table 3.27 there is statement, that Contents is optional.
Current problem that I'm trying to solve - produce PDF file that won't ask user to save something on document close.
Adding /Contents <<Length 0>> has not helped to solve this, unfortunately.