Examples of PDDestination


Examples of org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

   * @param errors
   * @return
   */
  protected boolean checkDest(List<ValidationError> errors) {
    try {
      PDDestination dest = this.pdLink.getDestination();
      if (dest != null) {
        // ---- check the if an A entry is present.
        if (this.pdLink.getAction() != null) {
          errors.add(new ValidationResult.ValidationError(
              ValidationConstants.ERROR_ANNOT_FORBIDDEN_DEST,
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

     * @throws IOException If there is an error when trying to find the page.
     */
    public PDPage findDestinationPage( PDDocument doc ) throws IOException
    {
        PDPage page = null;
        PDDestination rawDest = getDestination();
        if( rawDest == null )
        {
            PDAction outlineAction = getAction();
            if( outlineAction instanceof PDActionGoTo )
            {
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

     * @throws IOException If there is an error creating the destination.
     */
    public PDDestination getDestination() throws IOException
    {
        COSBase base = getDictionary().getDictionaryObject( COSName.DEST );
        PDDestination retval = PDDestination.create( base );

        return retval;
    }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

                if( bookmarks == null )
                {
                    throw new IOException( "Error: The PDF does not contain any bookmarks" );
                }
                PDOutlineItem item = bookmarks.getFirstChild().getNextSibling();
                PDDestination dest = item.getDestination();
                PDActionGoTo action = new PDActionGoTo();
                action.setDestination(dest);
                document.getDocumentCatalog().setOpenAction(action);

                document.save( args[1] );
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

     * @throws IOException If there is an error creating the destination.
     */
    public PDDestination getDestination() throws IOException
    {
        COSBase base = getDictionary().getDictionaryObject( COSName.DEST );
        PDDestination retval = PDDestination.create( base );

        return retval;
    }
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

     * @throws IOException If there is an error when trying to find the page.
     */
    public PDPage findDestinationPage( PDDocument doc ) throws IOException
    {
        PDPage page = null;
        PDDestination rawDest = getDestination();
        if( rawDest == null )
        {
            PDAction outlineAction = getAction();
            if( outlineAction instanceof PDActionGoTo )
            {
View Full Code Here

Examples of org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

     * @throws IOException If there is an error creating the destination.
     */
    public PDDestination getDestination() throws IOException
    {
        COSBase base = getDictionary().getDictionaryObject( COSName.DEST );
        PDDestination retval = PDDestination.create( base );

        return retval;
    }
View Full Code Here

Examples of org.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

     * @throws IOException If there is an error creating the destination.
     */
    public PDDestination getDestination() throws IOException
    {
        COSBase base = getDictionary().getDictionaryObject( COSName.DEST );
        PDDestination retval = PDDestination.create( base );
           
        return retval;
    }
View Full Code Here

Examples of org.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

                if( bookmarks == null )
                {
                    throw new IOException( "Error: The PDF does not contain any bookmarks" );
                }
                PDOutlineItem item = bookmarks.getFirstChild().getNextSibling();
                PDDestination dest = item.getDestination();
                PDActionGoTo action = new PDActionGoTo();
                action.setDestination(dest);        
                document.getDocumentCatalog().setOpenAction(action);
               
                document.save( args[1] );
View Full Code Here

Examples of org.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination

     * @throws IOException If there is an error when trying to find the page.
     */
    public PDPage findDestinationPage( PDDocument doc ) throws IOException
    {
        PDPage page = null;
        PDDestination rawDest = getDestination();
        if( rawDest == null )
        {
            PDAction outlineAction = getAction();
            if( outlineAction instanceof PDActionGoTo )
            {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.