LocalHyperlink

Vue de l’ensemble

‘LocalHyperlink’ est une classe dans Aspose.PDF FOSS pour Java.Déduit de: Hyberlink.

Hyperlink à un autre endroit dans le même document — soit une cible {@link BaseParagraph} (set via { @link #setTarget(BaseParagraf)}) ou un numéro de page spécifique basé sur 1 ({@Link #SetTargePageNumber(int) }).

Cette classe fournit 6 méthodes pour travailler avec des objets LocalHyperlink dans les programmes Java. Les méthodologies disponibles comprennent: LocalHyparlink, getTarget , getaTargetNumber ; setTarjet; ‘setTargetPageNumbers. Tous les membres publics sont accessibles à n'importe quelle application Java après l'installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : target‘, ’targePaget` .

Propriétés

NameTypeAccessDescription
targetBaseParagraphRead@return the linked paragraph, or {@code null} if a page-number link is used instead
targetPageNumberintRead@return the 1-based target page number, or {@code 0} if a paragraph target is used instead

méthodes

SignatureDescription
LocalHyperlink()Creates an empty local hyperlink.
LocalHyperlink(target: BaseParagraph)Creates a local hyperlink pointing at a paragraph anchor inside the same document.
getTarget()BaseParagraph@return the linked paragraph, or {@code null} if a page-number link is used instead
setTarget(target: BaseParagraph)Sets the paragraph anchor this link should jump to.
getTargetPageNumber()int@return the 1-based target page number, or {@code 0} if a paragraph target is used instead
setTargetPageNumber(targetPageNumber: int)Sets the page number this link should jump to (1-based).

Voir aussi

  • Aspose.PDF pour Java — API d’entreprise
 Français