Paulo/Bruno,

Thank you for taking the time to look at it.

________________________________
> From: psoa...@glintt.com
> To: itext-questions@lists.sourceforge.net
> Date: Sat, 3 Apr 2010 10:58:51 +0100
> Subject: Re: [iText-questions] PdfReader.MakeRemoteNamedDestinationsLocal()
>
> It's a porting bug in C#.
>
> Paulo
>
> ----- Original Message -----
>
> From:
> Bruno Lowagie
>
> To: Post all your questions
> about iText here
>
> Sent: Saturday, April 03, 2010 10:37
> AM
>
> Subject: Re: [iText-questions]
> PdfReader.MakeRemoteNamedDestinationsLocal()
>
>
> Hello Keith,
> I can't reproduce this problem in
> Java.
> Could this be something that works with iText 5.0.1,
> but not with
> iTextSharp 5.0.0?
> In that case, this will probably be solved when
> iTextSharp is upgraded.
> I'm currently at 1/3 of the final chapter, but I'm
> reviewing the
> previous chapters at the same time. Once that's done, I'll
> have to
> make a new release iText 5.0.2 because plenty of examples in part
> 4
> only work with the version of iText that is currently only
> available
> in SVN.
> best regards,
> Bruno
>
> Keith O wrote:
>>
> Hi,
>>
>> Going through the iText in Action - 2nd Edition examples
> using iTextSharp 5.0.0.
>>
>> part2.chapter07.LinkActions:
>>
> http://itextpdf.com/examples/index.php?page=example&id=131
>>
>
>> creates a PdfAction (no named destination?) of Subtype GoToR:
>>
>
>> page1.setAction(new PdfAction("movie_links_1.pdf", 1));
>>
>
>> Then part2.chapter07.ConcatenateNamedDestinations:
>> http://itextpdf.com/examples/index.php?page=example&id=133
>>
>
>> calls MakeRemoteNamedDestinationsLocal() using a PdfReader that reads
> the result file from LinkActions. When I run the example an Exception is
> thrown:
>>
>> Unhandled Exception: System.ArgumentNullException:
> Key cannot be null.
>> Parameter name: key
>> at
> System.Collections.Hashtable.get_Item(Object key)
>> at
> iTextSharp.text.pdf.PdfReader.ConvertNamedDestination(PdfObject obj, Hashtable
> names)
>> at
> iTextSharp.text.pdf.PdfReader.MakeRemoteNamedDestinationsLocal()
>>
> at testMakeRemoteNamedDestinationsLocal.Main(String[] args)
>>
>>
> If I comment out the line that sets the PdfAction, the example runs. Would
> someone else verify that the Exception is a result of the PdfAction without
> the named destination? It might be my error, since this is a three-part
> example. Besides part2.chapter07.LinkActions, you also need
> part1.chapter02.MovieLinks1 to run the example:
>> http://itextpdf.com/examples/index.php?page=example&id=46
>>
>
>> Thanks
>>
>> keith
                                          
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your 
inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to