summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-06-18 13:50:15 +0200
committerTomaž Vajngerl <quikee@gmail.com>2020-06-29 20:37:14 +0200
commit3289b5f8556c16390f7c2fbba613196ebe52fe2a (patch)
treea3732d7ebe43d7f8fd546159be65edf79364c675 /sd/source
parent0a96c423e0f21d4c59c226f860e7353b17851aea (diff)
support date and time for PDFium and use it for annotations
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 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> (cherry picked from commit 4e3196ceedc2b79d58bb57dba86f2f0158d32998) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97440 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/filter/pdf/sdpdffilter.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sd/source/filter/pdf/sdpdffilter.cxx b/sd/source/filter/pdf/sdpdffilter.cxx
index 552e19f597e9..43c6c6fdac36 100644
--- a/sd/source/filter/pdf/sdpdffilter.cxx
+++ b/sd/source/filter/pdf/sdpdffilter.cxx
@@ -90,6 +90,7 @@ bool SdPdfFilter::Import()
rPDFAnnotation.maRectangle.getHeight() / 100.00);
xAnnotation->setPosition(aUnoPosition);
xAnnotation->setSize(aUnoSize);
+ xAnnotation->setDateTime(rPDFAnnotation.maDateTime);
}
}