Is there any example on how to approach this? I've been struggling with this 
for a few hours but I've no idea how to create this XObject, and the examples 
in the project never use them.


On 29/08/2012, at 17:00, Leonard Rosenthol <[email protected]> wrote:

> Some PDF viewers (eg. anything back on Apple’s Quartz technology) will only 
> display annotations that have pre-generated appearances.  Others (such as 
> Acrobat or Adobe Reader) can/will create them on the fly.  The PDF standard 
> (ISO 32000-1:2008) does not require an appearance (though other standards, 
> such as PDF/A, do).
>  
> So if you want full compatibility – create it.
>  
> How to do it?  Create a Form XObject and then associate it with the AP key of 
> the annotations’ dictionary.
>  
> Leonard
>  
> From: Ismael Schellemberg [mailto:[email protected]] 
> Sent: Wednesday, August 29, 2012 3:39 PM
> To: Leonard Rosenthol
> Subject: Re: [Podofo-users] problem creating stamp annotation
>  
> I wasn't aware there had to be any writing of an appearance … I don't for any 
> type of annotation and the rest show fine, except this one, and this code 
> generates a stamp that some viewers can interpret correctly
>  
> Could you please explain how I should do that?
>  
>  
>  
> On 29/08/2012, at 16:28, Leonard Rosenthol <[email protected]> wrote:
> 
> 
> 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