Hi,
Thanks for the hint. I think there is a better solution, using
PdfObject::GetIndirectKey():
return this->GetObject()->GetIndirectKey("URI") ->GetString();
I commited this to SVN.
Cheers,
Dominik
On Sun, Nov 13, 2011 at 6:34 PM, skywind mailing lists <
[email protected]> wrote:
> I found out that
>
> PdfAction::HasURI() is checking if a key "URI" exists in the dictionary,
> PdfAction::GetURI() is to get the related URI. Unfortunately, GetURI() is
> only calling
>
> return this->GetObject()->GetDictionary().GetKey( "URI" )->GetString
> ();
>
> but there are also PDF documents that store the URI as a reference to a
> string. Wouldn't it be good to have a possibility to get these ones also?
> Then, GetURI() has to be changed to something like
>
> PdfAction::GetURI(PdfDocument* document=NULL)
>
> to get access to all objects if necessary and to stay compatible with the
> current implementation.
>
>
> Hardy
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> Podofo-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/podofo-users
>
>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users