Hello everybody, I have a dumb question about stampt type annotation.

I wrote a program to add a stamp on each page of a PDF and the user
can move it anywhere on the page.
The problem is that the user can rotate the stamp on the page and then
transform into a draft Icon stamp.
Is there a way to block the user to rotate annotation ?

First an extract of the code I use to create the annotation in the PDF
document :

PdfStreamedDocument document(PathFile.c_str());
PdfFont* pFontNormal = document.CreateFont("Arial", false, false);
PdfPage* pPage = document.CreatePage(PdfRect(0.0, 0.0, 595.0, 842.0));
PdfPainter painter;
PdfRect rect(0.0, 0.0, 40.0, 40.0);
PdfXObject xObj(rect, &document);
painter.SetPage(&xObj);
//Some painter stuff, draw circles / lines / text...
painter.FinishPage();
PdfAnnotation* pAnnotation =
pPage->CreateAnnotation(EPdfAnnotation::ePdfAnnotation_Stamp, PdfRect(60.0,
600.0, 40.0, 40.0));
pAnnotation->SetFlags(ePdfAnnotationFlags_Print);
pAnnotation->SetAppearanceStream(&xObj);
document.Close();


When I open the PDF with Adobe it looks great, the stamp is present with
all the stuff draw inside but there is also an anchor to rotate the stamp
and when I Rotate it all my drawing disappears and it transforms into a
draft stamp.

I tried to add a key Name with a specific name but the rotation transforms
it in a crossed square not following the appearance stream content.

Any help would be great !
Thanks in advance,
Gregory
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to