mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
File attachment annotation graphics
This commit is contained in:
@ -112,6 +112,7 @@ public:
|
||||
PDFObjectFactory& operator<<(AnnotationBorderStyle style);
|
||||
PDFObjectFactory& operator<<(const PDFObject& object);
|
||||
PDFObjectFactory& operator<<(Stamp stamp);
|
||||
PDFObjectFactory& operator<<(FileAttachmentIcon icon);
|
||||
|
||||
/// Treat containers - write them as array
|
||||
template<typename Container, typename ValueType = decltype(*std::begin(std::declval<Container>()))>
|
||||
@ -331,6 +332,21 @@ public:
|
||||
QString contents);
|
||||
|
||||
|
||||
/// Creates a new file attachment annotation. This annotation needs file specification as parameter.
|
||||
/// \param page Page to which is annotation added
|
||||
/// \param position Position
|
||||
/// \param fileSpecification File specification
|
||||
/// \param icon Icon
|
||||
/// \param title Title
|
||||
/// \param description Description
|
||||
PDFObjectReference createAnnotationFileAttachment(PDFObjectReference page,
|
||||
QPointF position,
|
||||
PDFObjectReference fileSpecification,
|
||||
FileAttachmentIcon icon,
|
||||
QString title,
|
||||
QString description);
|
||||
|
||||
|
||||
/// Free text annotation displays text directly on a page. Text appears directly on the page, in the
|
||||
/// same way, as standard text in PDF document. Free text annotations are usually used to comment
|
||||
/// the document. Free text annotation can also have callout line, with, or without a knee.
|
||||
@ -742,6 +758,16 @@ public:
|
||||
bool open);
|
||||
|
||||
|
||||
/// Text markup annotation is used to underline text. It is a markup annotation, so it can contain
|
||||
/// window to be opened (and commented).
|
||||
/// \param page Page to which is annotation added
|
||||
/// \param rectangle Area in which is markup displayed
|
||||
/// \param color Color
|
||||
PDFObjectReference createAnnotationUnderline(PDFObjectReference page,
|
||||
QRectF rectangle,
|
||||
QColor color);
|
||||
|
||||
|
||||
/// Text markup annotation is used to underline text. It is a markup annotation, so it can contain
|
||||
/// window to be opened (and commented).
|
||||
/// \param page Page to which is annotation added
|
||||
@ -758,16 +784,6 @@ public:
|
||||
QString contents);
|
||||
|
||||
|
||||
/// Text markup annotation is used to underline text. It is a markup annotation, so it can contain
|
||||
/// window to be opened (and commented).
|
||||
/// \param page Page to which is annotation added
|
||||
/// \param rectangle Area in which is markup displayed
|
||||
/// \param color Color
|
||||
PDFObjectReference createAnnotationUnderline(PDFObjectReference page,
|
||||
QRectF rectangle,
|
||||
QColor color);
|
||||
|
||||
|
||||
/// Creates empty catalog. This function is used, when a new document is being created. Do not call
|
||||
/// this function manually.
|
||||
PDFObjectReference createCatalog();
|
||||
|
Reference in New Issue
Block a user