Namespace TallComponents.PDF.Layout.Actions
Class GoToAction
A go-to action.
Instructs the PDF reader application to jump to a different position, determined by the
.
C# Document document = new Document(); Section section = document.Sections.Add(); TextParagraph text1 = new TextParagraph(); text1.Fragments.Add( new Fragment( "Jump to this paragraph" ) ); section.Add( text1 ); // The second paragraph links to the first using a GoToAction: Section section2 = document.Sections.Add(); TextParagraph text2 = new TextParagraph(); text2.Fragments.Add( new Fragment( "Click here" ) ); text2.Actions.Add( new GoToAction( new ParagraphDestination( text1 ) ); section.Add( text2 );
Syntax
public class GoToAction
: Action