Am 11.08.2017 um 18:36 schrieb Maruan Sahyoun:
Am 11.08.2017 um 18:24 schrieb Tilman Hausherr <thaush...@t-online.de>:
Am 11.08.2017 um 10:07 schrieb Maruan Sahyoun:
Hi,
with PDF 2.0 being available it might be time to start to introduce some of the
features in PDFBox (no rush I think as it will need some time to be adopted).
One feature I would like to discuss if it would be good to introduce a version
support so one could say to save as PDF 2.0 file or some other version. E.g.
one could now use utf-8 encoded text strings which will introduce issues in
readers not supporting that where some of the other changes like new properties
will simply be ignored.
We can indicate the version when saving, and we know the version when
loading... Maybe what you mean is to propagate the version to the COS classes?
Yes - as there are some areas in PDF 2.0 - such as utf-8 encoded text strings -
which we would need to enable e.g. when generating a document from scratch or
adding new annotations. Currently if we pass text as an input to some of our
setters when writing out the file it will not use utf-8 text strings which is
fine as it will ensure that older readers are able to read the content. But if
you'd like to 'enforce' 2.0 there is currently now way in doing so.
Does 2.0 require strings to be utf8 ? Or can one still use unicode?
Tilman
For other areas where there is a new 'PDF Object' or property with 2.0 we can
wait until there is demand for it and let the developer decide if that shall be
used (the same way we handle it today as there is no specific version support
in PDFBox i.e. one could declare the file as being 1.4. compliant but use 1.7
features wthout any complaints). The low level lib we are I think that's
acceptable.
Maruan
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: dev-h...@pdfbox.apache.org