Create annotations tool - line, polyline, polygon, ellipse

This commit is contained in:
Jakub Melka
2020-12-06 18:51:33 +01:00
parent 1d4e7d26ab
commit 010842cb04
9 changed files with 637 additions and 3 deletions

View File

@ -4073,6 +4073,21 @@ void PDFDocumentBuilder::setAnnotationContents(PDFObjectReference annotation,
}
void PDFDocumentBuilder::setAnnotationFillOpacity(PDFObjectReference annotation,
PDFReal opacity)
{
PDFObjectFactory objectBuilder;
objectBuilder.beginDictionary();
objectBuilder.beginDictionaryItem("ca");
objectBuilder << opacity;
objectBuilder.endDictionaryItem();
objectBuilder.endDictionary();
PDFObject annotationObject = objectBuilder.takeObject();
mergeTo(annotation, annotationObject);
}
void PDFDocumentBuilder::setAnnotationOpacity(PDFObjectReference annotation,
PDFReal opacity)
{
@ -4512,6 +4527,7 @@ void PDFDocumentBuilder::updateTrailerDictionary(PDFInteger objectCount)
updateDocumentInfo(qMove(updatedInfoDictionary));
}
/* END GENERATED CODE */
} // namespace pdf