GoToAction
Översikt
GoToAction är en klass i Aspose.PDF FOSS för Java. Arvsfödelse från: PdfAction.
Go-To åtgärd navigera till en destination i dokumentet (ISO 32000-1:2008, §12.6.4.2).
Denna klass ger 12 metoder för att arbeta med GoToAction objekt i Java-program. Tillgängliga metoder är bland annat: GoToAction, fromDictionary, getAppointment, getDestination, getNext, getPdfDictionary, getType, setDestination. Alla offentliga medlemmar är tillgängliga för alla Java-applikationer efter installation av FOSS for Java. Egenskaper: appointment, destination, next, pdfDictionary, type.
Egenskaper
| Namn och namn: | Typ: | Access | Beskrivning |
|---|---|---|---|
destination | ExplicitDestination | Läs. | Returnerar destinationen som en {@link ExplicitDestination} när ett är inställt (antingen i linje eller redan löst under konstruktionen); för en{@Link NamedDestination}, returneras den lat-lösta explicita destination, eller { @ kod null} om namnet inte kan lösas. |
appointment | IAppointment | Läs. | Returnerar den råa destinationen ({@link ExplicitDestination} eller {@Link NamedDestination}). |
pdfDictionary | PdfDictionary | Läs. | Returnerar underliggande åtgärdsordbok. |
type | String | Läs. | Returnerar åtgärdstypen (/S-post). |
next | PdfAction | Läs. | Returnerar nästa åtgärd (/Nästa), om någon. |
Methods
| Signature | Beskrivning |
|---|---|
GoToAction(page: Page) | Skapar en GoToAction som riktar sig till en sida med standard XYZ-destination. |
GoToAction() | Skapar ett GoToAction utan förinställd destination som används av uppkallare som därefter anropar {@link #setDestination(IAppointment)}. |
GoToAction(dest: ExplicitDestination) | Skapar en GoToAction med specifik destination. |
GoToAction(dest: NamedDestination) | Skapar en GoToAction med ett namngivet mål. |
GoToAction(dict: PdfDictionary, doc: Document) | Analyserar ett GoToAction från en befintlig ordbok. |
getDestination() → ExplicitDestination | Returnerar destinationen som en {@link ExplicitDestination} när ett är inställt (antingen i linje eller redan löst under konstruktionen); för en{@Link NamedDestination}, returneras den lat-lösta explicita destination, eller { @ kod null} om namnet inte kan lösas. |
getAppointment() → IAppointment | Returnerar den råa destinationen ({@link ExplicitDestination} eller {@Link NamedDestination}). |
setDestination(dest: IAppointment) | Ställer in destinationen (accepterar både {@link ExplicitDestination} och { @linkNamedDestination}). |
getPdfDictionary() → PdfDictionary | Returnerar underliggande åtgärdsordbok. |
getType() → String | Returnerar åtgärdstypen (/S-post). |
getNext() → PdfAction | Returnerar nästa åtgärd (/Nästa), om någon. |
fromDictionary(dict: PdfDictionary, doc: Document) → PdfAction | Factory: skapar lämplig PdfAction-underklass från en ordbok. |