support date and time for PDFium and use it for annotations

Desktop / LibreOffice - Tomaž Vajngerl [collabora.co.uk] - 21 June 2020 19:02 EDT

PDF annotations have the modification date and time accessible in the PDF specific format. With PDFium we read the annotation date and time and convert that to css::utils::DateTime (by converting to ISO8601 compatible string first).

Add support for modification date and tme for annotations into ImportPDFUnloaded and when the annotations are inserted into the document as comments (in Draw document).

Change-Id: I24aacde84b7530365d67ed335b1eefbaee706eca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96759

4e3196ceedc2 support date and time for PDFium and use it for annotations
include/vcl/filter/PDFiumLibrary.hxx | 6 +++-
include/vcl/pdfread.hxx | 2 ++
sd/source/filter/pdf/sdpdffilter.cxx | 1 +
vcl/qa/cppunit/PDFiumLibraryTest.cxx | 25 ++++++++++++++++
vcl/source/filter/ipdf/pdfread.cxx | 12 ++++++++
vcl/source/pdf/PDFiumLibrary.cxx | 57 ++++++++++++++++++++++++++++++++++++
6 files changed, 102 insertions(+), 1 deletion(-)

Upstream: cgit.freedesktop.org


  • Share