I supposed so, but I've no idea how to do it. I tried accessing the stream
dictionary but got an exception throw when attempting to set a key.
Where exactly should I change?
I just started trying this out today so I don't know the library very well yet.
Thanks for the fast answer :)
On Jun 11, 2012, at 5:51 PM, Leonard Rosenthol wrote:
> Yes, you need to update the Appearance Stream (AP) of the annotation as well.
>
> From: Ismael Schellemberg <isma...@gmail.com>
> To: "podofo-us...@lists.sf.net" <podofo-us...@lists.sf.net>
> Subject: [Podofo-users] pdf annotation + pdf stream color editing
>
> Hi, i'm planning on using this library on my iOS application to do some basic
> annotation editing, so I'm currently running some tests to see if what I need
> is achievable
>
> I tried editing the color property of an Ink annotation on a PDF I created
> with acrobat reader, and the annotation's dictionary value is changed
> correctly, but the stream still says the color is the original, so when I
> open it in viewer applications the original color is displayed
>
> Am I missing something? The code I use is pretty basic: (arguments are paths
> to input and output pdf paths respectively)
>
>
> PoDoFo::PdfMemDocument doc( argv[1] );
> pPage = doc.GetPage(0);
> PdfAnnotation* annot = pPage->GetAnnotation(0);
>
>
> double r = 0.5;
> double g = 0.0;
> double b = 1.0;
>
> annot->SetColor(r, g, b);
>
>
> TEST_SAFE_OP( doc.Write( argv[2] ) );
>
>
>
------------------------------------------------------------------------------
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
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users