Where are you actually writing the appearance for the stamp?

From: Ismael Schellemberg [mailto:[email protected]]
Sent: Wednesday, August 29, 2012 3:10 PM
To: [email protected]
Subject: [Podofo-users] problem creating stamp annotation

Hello! I'm having a problem when creating stamp annotations, they don't display 
properly on some viewers (ie: Mac's Preview app, iPad's Adobe Reader app), but 
displays correctly on other viewers (Mac's Adobe Acrobat Pro app, iPad's 
PDFExpert app)

This is the code I use to create a stamp annotation:

PdfRect pdfRect(100.0, 100.0, 100.0, 100.0); // The real values are passed as a 
variable, but the positioning isn't a problem here

PdfAnnotation *annot = page->CreateAnnotation(ePdfAnnotation_Stamp, pdfRect);
annot->GetObject()->GetDictionary().AddKey(PdfName("Name"), 
PdfName("SBApproved"));


// these are new things I tried to add when comparing the annotation structure 
with a stamp created in another app, but still no effect

pdf_int64 rotate = 0;
annot->GetObject()->GetDictionary().AddKey(PdfName("Rotate"), 
PdfVariant(rotate));
annot->SetFlags(4);




Any help is appreciated
Thanks in advance!
Ismael
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to