> Maruan Sahyoun <sahy...@fileaffairs.de> hat am 11. August 2017 um 18:36 > geschrieben: > > > > > 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 need to support such 2.0 features as there will be some people who will use PDFBox to render such pdfs. And if we add that utf-8 support for reading it shouldn't be that hard to add it for writing as well. I like Maruans idea to add some version support. So that adding some features to a pdf could change the version automatically or could trigger an exception.
Andreas > > 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. > > 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