using the pdf on the web #233
-
Hey there! Initial problemI was wondering if there is any way for the contents of a PDF to be updated after being distributed. Possible solutionTo make this idea possible, an editable web-pdf file format is needed. Reasons
Possible implementationI thought of the tiddlywiki format which works offline and is editable in the browser - but for pdf. Doubt
Not a feature request, but a technical question. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
PDF the file format can already support this, but the solution invokes both security concerns and goes against a fundamental principle of PDF being a reliable "document of record". And I would suspect very very few, if any, mainstream PDF viewers will support this (not the least because viewers often render and cache pages). Any PDF stream object can have F and FFilter entries, as per Table 5 in ISO 32000-2. F is a file specification dictionary that shall be used in place of any data in the PDF between the stream and endstream keywords. And a file specification dictionary can be a reference to a URL by setting the FS key to URL and setting the value of the F key to the URL - see subclause 7.11.5 URL specification which has an example. So if you set the content stream of an XObject to be such a URL-based stream then theoretically this would achieve what you want. Note that PDF the file format does not define when the URL is fetched so there is NO requirement that a processor needs to fetch the URL each time the page or XObject is displayed, scrolled into view, live updated/polled, etc. The minimum expectation is that the URLs necessary to show pages would be fetched once when the PDF is first opened (each time). |
Beta Was this translation helpful? Give feedback.
PDF the file format can already support this, but the solution invokes both security concerns and goes against a fundamental principle of PDF being a reliable "document of record". And I would suspect very very few, if any, mainstream PDF viewers will support this (not the least because viewers often render and cache pages).
Any PDF stream object can have F and FFilter entries, as per Table 5 in ISO 32000-2. F is a file specification dictionary that shall be used in place of any data in the PDF between the stream and endstream keywords. And a file specification dictionary can be a reference to a URL by setting the FS key to URL and setting the value of the F key to the URL - see subclause…