mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Redacting tool
This commit is contained in:
@ -1152,6 +1152,18 @@ void PDFDocumentBuilder::updateDocumentInfo(PDFObject info)
|
||||
mergeTo(infoReference, info);
|
||||
}
|
||||
|
||||
void PDFDocumentBuilder::setDocumentInfo(PDFObjectReference infoReference)
|
||||
{
|
||||
// Update the trailer dictionary
|
||||
PDFObjectFactory objectFactory;
|
||||
objectFactory.beginDictionary();
|
||||
objectFactory.beginDictionaryItem("Info");
|
||||
objectFactory << infoReference;
|
||||
objectFactory.endDictionaryItem();
|
||||
objectFactory.endDictionary();
|
||||
m_storage.updateTrailerDictionary(objectFactory.takeObject());
|
||||
}
|
||||
|
||||
QRectF PDFDocumentBuilder::getPolygonsBoundingRect(const Polygons& polygons) const
|
||||
{
|
||||
QRectF rect;
|
||||
|
Reference in New Issue
Block a user