mirror of https://github.com/JakubMelka/PDF4QT.git
Caret annotation graphics
This commit is contained in:
parent
a3ce271349
commit
992e4b32f3
|
@ -237,6 +237,11 @@ void PDFExamplesGenerator::generateAnnotationsExample()
|
||||||
builder.createAnnotationStrikeout(page11, QRectF(50, 150, 50, 50), Qt::green);
|
builder.createAnnotationStrikeout(page11, QRectF(50, 150, 50, 50), Qt::green);
|
||||||
builder.createAnnotationStrikeout(page11, QRectF(50, 250, 50, 50), Qt::red);
|
builder.createAnnotationStrikeout(page11, QRectF(50, 250, 50, 50), Qt::red);
|
||||||
|
|
||||||
|
pdf::PDFObjectReference page12 = builder.appendPage(QRectF(0, 0, 400, 400));
|
||||||
|
builder.createAnnotationCaret(page12, QRectF(50, 50, 50, 50), 3.0, Qt::blue, "Title1", "Subject1", "Contents - green filling, red boundary");
|
||||||
|
builder.createAnnotationCaret(page12, QRectF(50, 150, 50, 50), 3.0, Qt::red, "Title2", "Subject2", "Contents - red boundary");
|
||||||
|
builder.createAnnotationCaret(page12, QRectF(50, 250, 50, 50), 3.0, Qt::green, "Title3", "Subject3", "Contents - green filling");
|
||||||
|
|
||||||
// Write result to a file
|
// Write result to a file
|
||||||
pdf::PDFDocument document = builder.build();
|
pdf::PDFDocument document = builder.build();
|
||||||
pdf::PDFDocumentWriter writer(nullptr);
|
pdf::PDFDocumentWriter writer(nullptr);
|
||||||
|
|
|
@ -1911,4 +1911,31 @@ void PDFFreeTextAnnotation::draw(AnnotationDrawParameters& parameters) const
|
||||||
painter.drawText(QRectF(QPointF(0, 0), textRect.size()), getContents(), option);
|
painter.drawText(QRectF(QPointF(0, 0), textRect.size()), getContents(), option);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void PDFCaretAnnotation::draw(AnnotationDrawParameters& parameters) const
|
||||||
|
{
|
||||||
|
QPainter& painter = *parameters.painter;
|
||||||
|
parameters.boundingRectangle = getRectangle();
|
||||||
|
|
||||||
|
QRectF caretRect = getCaretRectangle();
|
||||||
|
if (caretRect.isEmpty())
|
||||||
|
{
|
||||||
|
caretRect = getRectangle();
|
||||||
|
}
|
||||||
|
|
||||||
|
QPointF controlPoint(caretRect.center());
|
||||||
|
controlPoint.setY(caretRect.top());
|
||||||
|
|
||||||
|
QPointF topPoint = controlPoint;
|
||||||
|
topPoint.setY(caretRect.bottom());
|
||||||
|
|
||||||
|
QPainterPath path;
|
||||||
|
path.moveTo(caretRect.topLeft());
|
||||||
|
path.quadTo(controlPoint, topPoint);
|
||||||
|
path.quadTo(controlPoint, caretRect.topRight());
|
||||||
|
path.lineTo(caretRect.topLeft());
|
||||||
|
path.closeSubpath();
|
||||||
|
|
||||||
|
painter.fillPath(path, QBrush(getStrokeColor(), Qt::SolidPattern));
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace pdf
|
} // namespace pdf
|
||||||
|
|
|
@ -917,6 +917,7 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
virtual AnnotationType getType() const override { return AnnotationType::Caret; }
|
virtual AnnotationType getType() const override { return AnnotationType::Caret; }
|
||||||
|
virtual void draw(AnnotationDrawParameters& parameters) const override;
|
||||||
|
|
||||||
const QRectF& getCaretRectangle() const { return m_caretRectangle; }
|
const QRectF& getCaretRectangle() const { return m_caretRectangle; }
|
||||||
Symbol getSymbol() const { return m_symbol; }
|
Symbol getSymbol() const { return m_symbol; }
|
||||||
|
|
|
@ -1100,6 +1100,71 @@ PDFObjectReference PDFDocumentBuilder::createActionURI(QString URL)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PDFObjectReference PDFDocumentBuilder::createAnnotationCaret(PDFObjectReference page,
|
||||||
|
QRectF rectangle,
|
||||||
|
PDFReal borderWidth,
|
||||||
|
QColor color,
|
||||||
|
QString title,
|
||||||
|
QString subject,
|
||||||
|
QString contents)
|
||||||
|
{
|
||||||
|
PDFObjectFactory objectBuilder;
|
||||||
|
|
||||||
|
objectBuilder.beginDictionary();
|
||||||
|
objectBuilder.beginDictionaryItem("Type");
|
||||||
|
objectBuilder << WrapName("Annot");
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("Subtype");
|
||||||
|
objectBuilder << WrapName("Caret");
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("Rect");
|
||||||
|
objectBuilder << rectangle;
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("F");
|
||||||
|
objectBuilder << 4;
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("P");
|
||||||
|
objectBuilder << page;
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("M");
|
||||||
|
objectBuilder << WrapCurrentDateTime();
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("CreationDate");
|
||||||
|
objectBuilder << WrapCurrentDateTime();
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("Border");
|
||||||
|
objectBuilder << std::initializer_list<PDFReal>{ 0.0, 0.0, borderWidth };
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("C");
|
||||||
|
objectBuilder << WrapAnnotationColor(color);
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("T");
|
||||||
|
objectBuilder << title;
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("Contents");
|
||||||
|
objectBuilder << contents;
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.beginDictionaryItem("Subj");
|
||||||
|
objectBuilder << subject;
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.endDictionary();
|
||||||
|
PDFObjectReference annotationObject = addObject(objectBuilder.takeObject());
|
||||||
|
PDFObjectReference popupAnnotation = createAnnotationPopup(page, annotationObject, getPopupWindowRect(rectangle), false);
|
||||||
|
|
||||||
|
objectBuilder.beginDictionary();
|
||||||
|
objectBuilder.beginDictionaryItem("Annots");
|
||||||
|
objectBuilder.beginArray();
|
||||||
|
objectBuilder << annotationObject;
|
||||||
|
objectBuilder.endArray();
|
||||||
|
objectBuilder.endDictionaryItem();
|
||||||
|
objectBuilder.endDictionary();
|
||||||
|
PDFObject pageAnnots = objectBuilder.takeObject();
|
||||||
|
appendTo(page, pageAnnots);
|
||||||
|
updateAnnotationAppearanceStreams(annotationObject);
|
||||||
|
return annotationObject;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
PDFObjectReference PDFDocumentBuilder::createAnnotationCircle(PDFObjectReference page,
|
PDFObjectReference PDFDocumentBuilder::createAnnotationCircle(PDFObjectReference page,
|
||||||
QRectF rectangle,
|
QRectF rectangle,
|
||||||
PDFReal borderWidth,
|
PDFReal borderWidth,
|
||||||
|
|
|
@ -289,6 +289,25 @@ public:
|
||||||
PDFObjectReference createActionURI(QString URL);
|
PDFObjectReference createActionURI(QString URL);
|
||||||
|
|
||||||
|
|
||||||
|
/// Caret annotations are used to indicate, where text should be inserted (for example, if reviewer
|
||||||
|
/// reviews the document, and he wants to mark, that some text should be inserted, he uses this
|
||||||
|
/// annotation).
|
||||||
|
/// \param page Page to which is annotation added
|
||||||
|
/// \param rectangle Area in which is caret displayed
|
||||||
|
/// \param borderWidth Border width
|
||||||
|
/// \param color Caret color. If you do not want to have a border, then use invalid QColor.
|
||||||
|
/// \param title Title
|
||||||
|
/// \param subject Subject
|
||||||
|
/// \param contents Contents
|
||||||
|
PDFObjectReference createAnnotationCaret(PDFObjectReference page,
|
||||||
|
QRectF rectangle,
|
||||||
|
PDFReal borderWidth,
|
||||||
|
QColor color,
|
||||||
|
QString title,
|
||||||
|
QString subject,
|
||||||
|
QString contents);
|
||||||
|
|
||||||
|
|
||||||
/// Circle annotation displays ellipse (or circle). Circle border/fill color can be defined, along with
|
/// Circle annotation displays ellipse (or circle). Circle border/fill color can be defined, along with
|
||||||
/// border width. Popup annotation can be attached to this annotation.
|
/// border width. Popup annotation can be attached to this annotation.
|
||||||
/// \param page Page to which is annotation added
|
/// \param page Page to which is annotation added
|
||||||
|
|
|
@ -183,6 +183,224 @@ return pageReference;</property>
|
||||||
<property name="functionDescription">Creates URI action.</property>
|
<property name="functionDescription">Creates URI action.</property>
|
||||||
<property name="returnType">_PDFObjectReference</property>
|
<property name="returnType">_PDFObjectReference</property>
|
||||||
</QObject>
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedFunction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedAction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">page</property>
|
||||||
|
<property name="parameterType">_PDFObjectReference</property>
|
||||||
|
<property name="parameterDescription">Page to which is annotation added</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">rectangle</property>
|
||||||
|
<property name="parameterType">_QRectF</property>
|
||||||
|
<property name="parameterDescription">Area in which is caret displayed</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">borderWidth</property>
|
||||||
|
<property name="parameterType">_PDFReal</property>
|
||||||
|
<property name="parameterDescription">Border width</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">color</property>
|
||||||
|
<property name="parameterType">_QColor</property>
|
||||||
|
<property name="parameterDescription">Caret color. If you do not want to have a border, then use invalid QColor.</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">title</property>
|
||||||
|
<property name="parameterType">_QString</property>
|
||||||
|
<property name="parameterDescription">Title</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">subject</property>
|
||||||
|
<property name="parameterType">_QString</property>
|
||||||
|
<property name="parameterDescription">Subject</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">contents</property>
|
||||||
|
<property name="parameterType">_QString</property>
|
||||||
|
<property name="parameterDescription">Contents</property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="actionType">Parameters</property>
|
||||||
|
<property name="variableName"></property>
|
||||||
|
<property name="variableType">_void</property>
|
||||||
|
<property name="code"></property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedAction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Type</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapName("Annot")</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Subtype</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapName("Caret")</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Rect</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">rectangle</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">F</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">4</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">P</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">page</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">M</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapCurrentDateTime()</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">CreationDate</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapCurrentDateTime()</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Border</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">std::initializer_list<PDFReal>{ 0.0, 0.0, borderWidth }</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">C</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapAnnotationColor(color)</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">T</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">title</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Contents</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">contents</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Subj</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">subject</property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="dictionaryItemName"></property>
|
||||||
|
<property name="objectType">Dictionary</property>
|
||||||
|
<property name="value"></property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="actionType">CreateObject</property>
|
||||||
|
<property name="variableName">annotationObject</property>
|
||||||
|
<property name="variableType">_PDFObjectReference</property>
|
||||||
|
<property name="code"></property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedAction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="actionType">Code</property>
|
||||||
|
<property name="variableName"></property>
|
||||||
|
<property name="variableType">_void</property>
|
||||||
|
<property name="code">PDFObjectReference popupAnnotation = createAnnotationPopup(page, annotationObject, getPopupWindowRect(rectangle), false);</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedAction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName"></property>
|
||||||
|
<property name="objectType">ArraySimple</property>
|
||||||
|
<property name="value">annotationObject</property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="dictionaryItemName">Annots</property>
|
||||||
|
<property name="objectType">DictionaryItemComplex</property>
|
||||||
|
<property name="value"></property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="dictionaryItemName"></property>
|
||||||
|
<property name="objectType">Dictionary</property>
|
||||||
|
<property name="value"></property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="actionType">CreateObject</property>
|
||||||
|
<property name="variableName">pageAnnots</property>
|
||||||
|
<property name="variableType">_PDFObject</property>
|
||||||
|
<property name="code"></property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedAction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="actionType">Code</property>
|
||||||
|
<property name="variableName"></property>
|
||||||
|
<property name="variableType">_void</property>
|
||||||
|
<property name="code">appendTo(page, pageAnnots);
|
||||||
|
updateAnnotationAppearanceStreams(annotationObject);
|
||||||
|
return annotationObject;</property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="functionType">Annotations</property>
|
||||||
|
<property name="functionName">createAnnotationCaret</property>
|
||||||
|
<property name="functionDescription">Caret annotations are used to indicate, where text should be inserted (for example, if reviewer reviews the document, and he wants to mark, that some text should be inserted, he uses this annotation).</property>
|
||||||
|
<property name="returnType">_PDFObjectReference</property>
|
||||||
|
</QObject>
|
||||||
<QObject class="codegen::GeneratedFunction">
|
<QObject class="codegen::GeneratedFunction">
|
||||||
<property name="objectName"></property>
|
<property name="objectName"></property>
|
||||||
<property name="items">
|
<property name="items">
|
||||||
|
@ -877,6 +1095,288 @@ return annotationObject;</property>
|
||||||
<property name="variableType">_void</property>
|
<property name="variableType">_void</property>
|
||||||
<property name="code">appendTo(page, pageAnnots);
|
<property name="code">appendTo(page, pageAnnots);
|
||||||
updateAnnotationAppearanceStreams(annotationObject);
|
updateAnnotationAppearanceStreams(annotationObject);
|
||||||
|
return annotationObject;</property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="functionType">Annotations</property>
|
||||||
|
<property name="functionName">createAnnotationFreeText</property>
|
||||||
|
<property name="functionDescription">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. Specify start/end point parameters of this function to get callout line.</property>
|
||||||
|
<property name="returnType">_PDFObjectReference</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedFunction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedAction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">page</property>
|
||||||
|
<property name="parameterType">_PDFObjectReference</property>
|
||||||
|
<property name="parameterDescription">Page to which is annotation added</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">boundingRectangle</property>
|
||||||
|
<property name="parameterType">_QRectF</property>
|
||||||
|
<property name="parameterDescription">Bounding rectangle of free text annotation. It must contain both callout line and text rectangle.</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">textRectangle</property>
|
||||||
|
<property name="parameterType">_QRectF</property>
|
||||||
|
<property name="parameterDescription">Rectangle with text, in absolute coordinates. They are then recomputed to match bounding rectangle.</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">title</property>
|
||||||
|
<property name="parameterType">_QString</property>
|
||||||
|
<property name="parameterDescription">Title</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">subject</property>
|
||||||
|
<property name="parameterType">_QString</property>
|
||||||
|
<property name="parameterDescription">Subject</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">contents</property>
|
||||||
|
<property name="parameterType">_QString</property>
|
||||||
|
<property name="parameterDescription">Contents (text displayed)</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">textAlignment</property>
|
||||||
|
<property name="parameterType">_TextAlignment</property>
|
||||||
|
<property name="parameterDescription">Text alignment. Only horizontal alignment flags are valid.</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">startPoint</property>
|
||||||
|
<property name="parameterType">_QPointF</property>
|
||||||
|
<property name="parameterDescription">Start point of callout line</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">kneePoint</property>
|
||||||
|
<property name="parameterType">_QPointF</property>
|
||||||
|
<property name="parameterDescription">Knee point of callout line</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">endPoint</property>
|
||||||
|
<property name="parameterType">_QPointF</property>
|
||||||
|
<property name="parameterDescription">End point of callout line</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">startLineType</property>
|
||||||
|
<property name="parameterType">_AnnotationLineEnding</property>
|
||||||
|
<property name="parameterDescription">Line ending at the start point</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedParameter">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="parameterName">endLineType</property>
|
||||||
|
<property name="parameterType">_AnnotationLineEnding</property>
|
||||||
|
<property name="parameterDescription">Line ending at the end point</property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="actionType">Parameters</property>
|
||||||
|
<property name="variableName"></property>
|
||||||
|
<property name="variableType">_void</property>
|
||||||
|
<property name="code"></property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedAction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Type</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapName("Annot")</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Subtype</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapName("FreeText")</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Rect</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">boundingRectangle</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">F</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">4</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">P</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">page</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">M</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapCurrentDateTime()</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">CreationDate</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapCurrentDateTime()</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">T</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">title</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Contents</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">contents</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Subj</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">subject</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">Q</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapFreeTextAlignment(textAlignment)</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">DA</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">WrapString("/Arial 10 Tf")</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName">RD</property>
|
||||||
|
<property name="objectType">DictionaryItemSimple</property>
|
||||||
|
<property name="value">getAnnotationReductionRectangle(boundingRectangle, textRectangle)</property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName"></property>
|
||||||
|
<property name="objectType">ArraySimple</property>
|
||||||
|
<property name="value">startPoint;kneePoint;endPoint</property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="dictionaryItemName">CL</property>
|
||||||
|
<property name="objectType">DictionaryItemComplex</property>
|
||||||
|
<property name="value"></property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName"></property>
|
||||||
|
<property name="objectType">ArraySimple</property>
|
||||||
|
<property name="value">startLineType;endLineType</property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="dictionaryItemName">LE</property>
|
||||||
|
<property name="objectType">DictionaryItemComplex</property>
|
||||||
|
<property name="value"></property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="dictionaryItemName"></property>
|
||||||
|
<property name="objectType">Dictionary</property>
|
||||||
|
<property name="value"></property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="actionType">CreateObject</property>
|
||||||
|
<property name="variableName">annotationObject</property>
|
||||||
|
<property name="variableType">_PDFObjectReference</property>
|
||||||
|
<property name="code"></property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedAction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items">
|
||||||
|
<QObject class="codegen::GeneratedPDFObject">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="dictionaryItemName"></property>
|
||||||
|
<property name="objectType">ArraySimple</property>
|
||||||
|
<property name="value">annotationObject</property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="dictionaryItemName">Annots</property>
|
||||||
|
<property name="objectType">DictionaryItemComplex</property>
|
||||||
|
<property name="value"></property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="dictionaryItemName"></property>
|
||||||
|
<property name="objectType">Dictionary</property>
|
||||||
|
<property name="value"></property>
|
||||||
|
</QObject>
|
||||||
|
</property>
|
||||||
|
<property name="actionType">CreateObject</property>
|
||||||
|
<property name="variableName">pageAnnots</property>
|
||||||
|
<property name="variableType">_PDFObject</property>
|
||||||
|
<property name="code"></property>
|
||||||
|
</QObject>
|
||||||
|
<QObject class="codegen::GeneratedAction">
|
||||||
|
<property name="objectName"></property>
|
||||||
|
<property name="items"/>
|
||||||
|
<property name="actionType">Code</property>
|
||||||
|
<property name="variableName"></property>
|
||||||
|
<property name="variableType">_void</property>
|
||||||
|
<property name="code">appendTo(page, pageAnnots);
|
||||||
|
updateAnnotationAppearanceStreams(annotationObject);
|
||||||
return annotationObject;</property>
|
return annotationObject;</property>
|
||||||
</QObject>
|
</QObject>
|
||||||
</property>
|
</property>
|
||||||
|
@ -5775,287 +6275,5 @@ updateDocumentInfo(qMove(updatedInfoDictionary));</property>
|
||||||
<property name="functionDescription">This function is used to update trailer dictionary. Must be called each time the final document is being built.</property>
|
<property name="functionDescription">This function is used to update trailer dictionary. Must be called each time the final document is being built.</property>
|
||||||
<property name="returnType">_void</property>
|
<property name="returnType">_void</property>
|
||||||
</QObject>
|
</QObject>
|
||||||
<QObject class="codegen::GeneratedFunction">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items">
|
|
||||||
<QObject class="codegen::GeneratedAction">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items">
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">page</property>
|
|
||||||
<property name="parameterType">_PDFObjectReference</property>
|
|
||||||
<property name="parameterDescription">Page to which is annotation added</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">boundingRectangle</property>
|
|
||||||
<property name="parameterType">_QRectF</property>
|
|
||||||
<property name="parameterDescription">Bounding rectangle of free text annotation. It must contain both callout line and text rectangle.</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">textRectangle</property>
|
|
||||||
<property name="parameterType">_QRectF</property>
|
|
||||||
<property name="parameterDescription">Rectangle with text, in absolute coordinates. They are then recomputed to match bounding rectangle.</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">title</property>
|
|
||||||
<property name="parameterType">_QString</property>
|
|
||||||
<property name="parameterDescription">Title</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">subject</property>
|
|
||||||
<property name="parameterType">_QString</property>
|
|
||||||
<property name="parameterDescription">Subject</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">contents</property>
|
|
||||||
<property name="parameterType">_QString</property>
|
|
||||||
<property name="parameterDescription">Contents (text displayed)</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">textAlignment</property>
|
|
||||||
<property name="parameterType">_TextAlignment</property>
|
|
||||||
<property name="parameterDescription">Text alignment. Only horizontal alignment flags are valid.</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">startPoint</property>
|
|
||||||
<property name="parameterType">_QPointF</property>
|
|
||||||
<property name="parameterDescription">Start point of callout line</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">kneePoint</property>
|
|
||||||
<property name="parameterType">_QPointF</property>
|
|
||||||
<property name="parameterDescription">Knee point of callout line</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">endPoint</property>
|
|
||||||
<property name="parameterType">_QPointF</property>
|
|
||||||
<property name="parameterDescription">End point of callout line</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">startLineType</property>
|
|
||||||
<property name="parameterType">_AnnotationLineEnding</property>
|
|
||||||
<property name="parameterDescription">Line ending at the start point</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedParameter">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="parameterName">endLineType</property>
|
|
||||||
<property name="parameterType">_AnnotationLineEnding</property>
|
|
||||||
<property name="parameterDescription">Line ending at the end point</property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
|
||||||
<property name="actionType">Parameters</property>
|
|
||||||
<property name="variableName"></property>
|
|
||||||
<property name="variableType">_void</property>
|
|
||||||
<property name="code"></property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedAction">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items">
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items">
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">Type</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">WrapName("Annot")</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">Subtype</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">WrapName("FreeText")</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">Rect</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">boundingRectangle</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">F</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">4</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">P</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">page</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">M</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">WrapCurrentDateTime()</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">CreationDate</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">WrapCurrentDateTime()</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">T</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">title</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">Contents</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">contents</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">Subj</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">subject</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">Q</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">WrapFreeTextAlignment(textAlignment)</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">DA</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">WrapString("/Arial 10 Tf")</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName">RD</property>
|
|
||||||
<property name="objectType">DictionaryItemSimple</property>
|
|
||||||
<property name="value">getAnnotationReductionRectangle(boundingRectangle, textRectangle)</property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items">
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName"></property>
|
|
||||||
<property name="objectType">ArraySimple</property>
|
|
||||||
<property name="value">startPoint;kneePoint;endPoint</property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
|
||||||
<property name="dictionaryItemName">CL</property>
|
|
||||||
<property name="objectType">DictionaryItemComplex</property>
|
|
||||||
<property name="value"></property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items">
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName"></property>
|
|
||||||
<property name="objectType">ArraySimple</property>
|
|
||||||
<property name="value">startLineType;endLineType</property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
|
||||||
<property name="dictionaryItemName">LE</property>
|
|
||||||
<property name="objectType">DictionaryItemComplex</property>
|
|
||||||
<property name="value"></property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
|
||||||
<property name="dictionaryItemName"></property>
|
|
||||||
<property name="objectType">Dictionary</property>
|
|
||||||
<property name="value"></property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
|
||||||
<property name="actionType">CreateObject</property>
|
|
||||||
<property name="variableName">annotationObject</property>
|
|
||||||
<property name="variableType">_PDFObjectReference</property>
|
|
||||||
<property name="code"></property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedAction">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items">
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items">
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items">
|
|
||||||
<QObject class="codegen::GeneratedPDFObject">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="dictionaryItemName"></property>
|
|
||||||
<property name="objectType">ArraySimple</property>
|
|
||||||
<property name="value">annotationObject</property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
|
||||||
<property name="dictionaryItemName">Annots</property>
|
|
||||||
<property name="objectType">DictionaryItemComplex</property>
|
|
||||||
<property name="value"></property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
|
||||||
<property name="dictionaryItemName"></property>
|
|
||||||
<property name="objectType">Dictionary</property>
|
|
||||||
<property name="value"></property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
|
||||||
<property name="actionType">CreateObject</property>
|
|
||||||
<property name="variableName">pageAnnots</property>
|
|
||||||
<property name="variableType">_PDFObject</property>
|
|
||||||
<property name="code"></property>
|
|
||||||
</QObject>
|
|
||||||
<QObject class="codegen::GeneratedAction">
|
|
||||||
<property name="objectName"></property>
|
|
||||||
<property name="items"/>
|
|
||||||
<property name="actionType">Code</property>
|
|
||||||
<property name="variableName"></property>
|
|
||||||
<property name="variableType">_void</property>
|
|
||||||
<property name="code">appendTo(page, pageAnnots);
|
|
||||||
updateAnnotationAppearanceStreams(annotationObject);
|
|
||||||
return annotationObject;</property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
|
||||||
<property name="functionType">Annotations</property>
|
|
||||||
<property name="functionName">createAnnotationFreeText</property>
|
|
||||||
<property name="functionDescription">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. Specify start/end point parameters of this function to get callout line.</property>
|
|
||||||
<property name="returnType">_PDFObjectReference</property>
|
|
||||||
</QObject>
|
|
||||||
</property>
|
</property>
|
||||||
</root>
|
</root>
|
||||||
|
|
Loading…
Reference in New Issue