Settings

Theme

Ask HN: The P in pdf is a lie?

4 points by xiwenc a year ago · 5 comments · 1 min read


Yesterday I received a form from a third party in .docx format. They probably use MS Windows and MS word to create it.

I am on a mac. So I opened the file in Pages.app and export it to pdf. I then proceed to complete the form with Preview.app. After that i saved my pdf and emailed it back to third party.

Today third party replied: the pdf file is corrupted. Can you please send .docx file?

Did I do something very stupid or indeed Portable Document Format is a big lie?

gettalong a year ago

Many PDF viewers and library do not fully follow the PDF standard or have subtle bugs. This leads to problems later on.

My guess is this all started many years ago when Adobe Reader was the standard PDF reader and it was (and still is) very lenient when it comes to PDFs that aren't exactly following the specification.

So what did everyone else? They followed Adobe's lead because "But, but, ... it works in Adobe Reader!"

stefanos82 a year ago

Open your .docx file, save it as .odt, make sure the layout matches that of .docx, and THEN export it as PDF; Microsoft stuff, don't ask!

fuzzfactor a year ago

I thought P stood for "proprietary". Isn't that Adobe?

  • mtmail a year ago

    It's a ISO standard since 2008. There are other standards that started from one company. For example https://en.wikipedia.org/wiki/GTFS used to be "Google Transit Feed Specification" and it became "General Transit Feed Specification".

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection