summaryrefslogtreecommitdiff
path: root/include/vcl/pdfread.hxx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2020-06-18 13:30:38 +0200
committerTomaž Vajngerl <quikee@gmail.com>2020-06-21 13:32:08 +0200
commit3870dd43e94c440a5094a57c47d3b7565658d73c (patch)
treea2021624905ce3f4a0e120e18a924bd63c1e6b49 /include/vcl/pdfread.hxx
parentc72698b33779924877cd6fb103c270df297ee564 (diff)
sd: support adding PDF text / pop-up annotations as comments
Change-Id: I3e072f011089864f3349a470a32412cc33bcc022 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96758 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/vcl/pdfread.hxx')
-rw-r--r--include/vcl/pdfread.hxx16
1 files changed, 14 insertions, 2 deletions
diff --git a/include/vcl/pdfread.hxx b/include/vcl/pdfread.hxx
index a65d230279b9..d79115f40249 100644
--- a/include/vcl/pdfread.hxx
+++ b/include/vcl/pdfread.hxx
@@ -14,6 +14,7 @@
#include <tools/gen.hxx>
#include <tools/stream.hxx>
#include <vcl/graph.hxx>
+#include <basegfx/range/b2drectangle.hxx>
namespace com::sun::star::uno
{
@@ -31,16 +32,27 @@ VCL_DLLPUBLIC size_t RenderPDFBitmaps(const void* pBuffer, int nSize, std::vecto
/// Imports a PDF stream into rGraphic as VectorGraphicData.
VCL_DLLPUBLIC bool ImportPDF(SvStream& rStream, Graphic& rGraphic);
+struct PDFGraphicAnnotation
+{
+ OUString maAuthor;
+ OUString maText;
+ // In HMM
+ basegfx::B2DRectangle maRectangle;
+};
+
struct PDFGraphicResult
{
Graphic maGraphic;
-
// Size in HMM
Size maSize;
- PDFGraphicResult(Graphic const& rGraphic, Size const& rSize)
+ std::vector<PDFGraphicAnnotation> maAnnotations;
+
+ PDFGraphicResult(Graphic const& rGraphic, Size const& rSize,
+ std::vector<PDFGraphicAnnotation> const& aAnnotations)
: maGraphic(rGraphic)
, maSize(rSize)
+ , maAnnotations(aAnnotations)
{
}
};