15#include <com/sun/star/util/DateTime.hpp>
22#include <rtl/ustring.hxx>
60 virtual std::unique_ptr<PDFiumDocument>
openDocument(
const void* pData,
int nSize,
61 const OString& rPassword)
65 virtual std::unique_ptr<PDFiumBitmap>
createBitmap(
int& nWidth,
int& nHeight,
int nAlpha) = 0;
74 virtual void fillRect(
int left,
int top,
int width,
int height, sal_uInt32 nColor) = 0;
76 int nSizeX,
int nSizeY)
91 virtual bool hasKey(OString
const& rKey) = 0;
93 virtual OUString
getString(OString
const& rKey) = 0;
94 virtual std::unique_ptr<PDFiumAnnotation>
getLinked(OString
const& rKey) = 0;
96 virtual std::unique_ptr<PDFiumPageObject>
getObject(
int nIndex) = 0;
97 virtual std::vector<std::vector<basegfx::B2DPoint>>
getInkStrokes() = 0;
133 virtual OUString
getText(std::unique_ptr<PDFiumTextPage>
const& pTextPage) = 0;
172 virtual std::unique_ptr<PDFiumSearchHandle>
185 virtual std::unique_ptr<PDFiumPageObject>
getObject(
int nIndex) = 0;
233 virtual std::unique_ptr<PDFiumPage>
openPage(
int nIndex) = 0;
240 static std::shared_ptr<PDFium>&
get();
const sal_uInt8 * ConstScanline
sal_uInt64 BitmapChecksum
virtual float getBorderWidth()=0
virtual size_t getAttachmentPointsCount()=0
virtual PDFAnnotationSubType getSubType()=0
virtual int getObjectCount()=0
virtual Color getColor()=0
virtual OUString getFormFieldAlternateName(PDFiumDocument *pDoc)=0
virtual OUString getFormFieldValue(PDFiumDocument *pDoc)=0
virtual float getFontSize(PDFiumDocument *pDoc)=0
virtual std::vector< basegfx::B2DPoint > getVertices()=0
virtual std::unique_ptr< PDFiumPageObject > getObject(int nIndex)=0
virtual PDFFormFieldType getFormFieldType(PDFiumDocument *pDoc)=0
virtual std::vector< basegfx::B2DPoint > getLineGeometry()=0
virtual basegfx::B2DSize getBorderCornerRadius()=0
virtual int getFormFieldFlags(PDFiumDocument *pDoc)=0
virtual PDFObjectType getValueType(OString const &rKey)=0
virtual OUString getString(OString const &rKey)=0
virtual OUString getFormAdditionalActionJavaScript(PDFiumDocument *pDoc, PDFAnnotAActionType eEvent)=0
virtual Color getInteriorColor()=0
virtual basegfx::B2DRectangle getRectangle()=0
virtual std::vector< basegfx::B2DPoint > getAttachmentPoints(size_t nIndex)=0
virtual std::unique_ptr< PDFiumAnnotation > getLinked(OString const &rKey)=0
virtual ~PDFiumAnnotation()=default
virtual std::vector< std::vector< basegfx::B2DPoint > > getInkStrokes()=0
virtual bool hasKey(OString const &rKey)=0
virtual int getStride()=0
virtual void renderPageBitmap(PDFiumDocument *pDoc, PDFiumPage *pPage, int nStartX, int nStartY, int nSizeX, int nSizeY)=0
virtual void fillRect(int left, int top, int width, int height, sal_uInt32 nColor)=0
virtual ~PDFiumBitmap()=default
virtual int getHeight()=0
virtual ConstScanline getBuffer()=0
virtual PDFBitmapType getFormat()=0
virtual int getFileVersion()=0
virtual bool saveWithVersion(SvMemoryStream &rStream, int nFileVersion)=0
virtual ~PDFiumDocument()=default
virtual std::vector< unsigned int > getTrailerEnds()=0
virtual basegfx::B2DSize getPageSize(int nIndex)=0
virtual std::unique_ptr< PDFiumSignature > getSignature(int nIndex)=0
virtual int getSignatureCount()=0
virtual int getPageCount()=0
virtual std::unique_ptr< PDFiumPage > openPage(int nIndex)=0
virtual Color getStrokeColor()=0
virtual ~PDFiumPageObject()=default
virtual double getStrokeWidth()=0
virtual std::unique_ptr< PDFiumBitmap > getImageBitmap()=0
virtual bool getDrawMode(PDFFillMode &eFillMode, bool &bStroke)=0
virtual std::unique_ptr< PDFiumPageObject > getFormObject(int nIndex)=0
virtual basegfx::B2DHomMatrix getMatrix()=0
virtual std::unique_ptr< PDFiumPathSegment > getPathSegment(int index)=0
virtual int getFormObjectCount()=0
virtual int getPathSegmentCount()=0
virtual PDFPageObjectType getType()=0
virtual basegfx::B2DRectangle getBounds()=0
virtual double getFontSize()=0
virtual Color getFillColor()=0
virtual OUString getFontName()=0
virtual PDFTextRenderMode getTextRenderMode()=0
virtual Size getImageSize(PDFiumPage &rPage)=0
virtual OUString getText(std::unique_ptr< PDFiumTextPage > const &pTextPage)=0
virtual double getHeight()=0
virtual void onAfterLoadPage(PDFiumDocument *pDoc)=0
virtual std::unique_ptr< PDFiumPageObject > getObject(int nIndex)=0
virtual bool hasTransparency()=0
virtual std::unique_ptr< PDFiumAnnotation > getAnnotation(int nIndex)=0
virtual ~PDFiumPage()=default
virtual double getWidth()=0
virtual BitmapChecksum getChecksum(int nMDPPerm)=0
Get bitmap checksum of the page, without annotations/commenting.
virtual int getObjectCount()=0
virtual int getAnnotationCount()=0
virtual int getAnnotationIndex(std::unique_ptr< PDFiumAnnotation > const &rAnnotation)=0
virtual std::unique_ptr< PDFiumTextPage > getTextPage()=0
virtual bool hasLinks()=0
virtual PDFSegmentType getType() const =0
virtual bool isClosed() const =0
virtual basegfx::B2DPoint getPoint() const =0
virtual ~PDFiumPathSegment()=default
virtual int getSearchResultIndex()=0
virtual int getSearchCount()=0
virtual bool findNext()=0
virtual bool findPrev()=0
virtual ~PDFiumSearchHandle()=default
Represents one digital signature, as exposed by PDFium.
virtual ~PDFiumSignature()=default
virtual OString getSubFilter()=0
virtual OUString getReason()=0
virtual std::vector< int > getByteRange()=0
virtual css::util::DateTime getTime()=0
virtual int getDocMDPPermission()=0
virtual std::vector< unsigned char > getContents()=0
virtual unsigned int getUnicode(int index)=0
virtual std::unique_ptr< PDFiumSearchHandle > findStart(const OUString &rFindWhat, PDFFindFlags nFlags, sal_Int32 nStartIndex)=0
virtual basegfx::B2DRectangle getCharBox(int nIndex, double fPageHeight)=0
Returned rect is no longer upside down and is in mm100.
virtual int countChars()=0
virtual ~PDFiumTextPage()=default
virtual std::unique_ptr< PDFiumBitmap > createBitmap(int &nWidth, int &nHeight, int nAlpha)=0
createBitmap can reduce requested size to possible value
virtual ~PDFium()=default
virtual const OUString & getLastError() const =0
virtual std::unique_ptr< PDFiumDocument > openDocument(const void *pData, int nSize, const OString &rPassword)=0
virtual PDFErrorType getLastErrorCode()=0
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
constexpr OStringLiteral constDictionaryKeyPopup
constexpr OStringLiteral constDictionaryKeyInteriorColor
constexpr OStringLiteral constDictionaryKeyTitle
constexpr OStringLiteral constDictionaryKeyContents
constexpr OStringLiteral constDictionaryKeyModificationDate
OUString convertPdfDateToISO8601(std::u16string_view rInput)