From: Vincent Vanwaelscappel Date: Tue, 29 Mar 2022 19:36:49 +0000 (+0200) Subject: wip #5195 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c856c3319fdfb697ecaaaa534eef659c1aba0de9;p=cubist_pdf.git wip #5195 @0.5 --- diff --git a/.idea/php.xml b/.idea/php.xml index 8ccad25..241dbb9 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -65,5 +65,7 @@ - + + \ No newline at end of file diff --git a/resources/tools/fwstk/.idea/workspace.xml b/resources/tools/fwstk/.idea/workspace.xml index 98b6225..082ba1c 100644 --- a/resources/tools/fwstk/.idea/workspace.xml +++ b/resources/tools/fwstk/.idea/workspace.xml @@ -491,7 +491,7 @@ - + 1487172253077 diff --git a/resources/tools/fwstk/bin/com/fluidbook/fwstk/Main.class b/resources/tools/fwstk/bin/com/fluidbook/fwstk/Main.class index 5320111..446c643 100644 Binary files a/resources/tools/fwstk/bin/com/fluidbook/fwstk/Main.class and b/resources/tools/fwstk/bin/com/fluidbook/fwstk/Main.class differ diff --git a/resources/tools/fwstk/out/artifacts/fwstk_jar/fwstk.jar b/resources/tools/fwstk/out/artifacts/fwstk_jar/fwstk.jar index d2c1e45..757f7c1 100644 Binary files a/resources/tools/fwstk/out/artifacts/fwstk_jar/fwstk.jar and b/resources/tools/fwstk/out/artifacts/fwstk_jar/fwstk.jar differ diff --git a/resources/tools/fwstk/src/com/fluidbook/fwstk/Main.java b/resources/tools/fwstk/src/com/fluidbook/fwstk/Main.java index 6ebf8a4..760366a 100644 --- a/resources/tools/fwstk/src/com/fluidbook/fwstk/Main.java +++ b/resources/tools/fwstk/src/com/fluidbook/fwstk/Main.java @@ -22,6 +22,7 @@ import org.apache.pdfbox.pdmodel.common.PDPageLabels; import org.apache.pdfbox.pdmodel.common.PDRectangle; import org.apache.pdfbox.pdmodel.interactive.action.type.PDAction; import org.apache.pdfbox.pdmodel.interactive.action.type.PDActionGoTo; +import org.apache.pdfbox.pdmodel.interactive.action.type.PDActionRemoteGoTo; import org.apache.pdfbox.pdmodel.interactive.action.type.PDActionURI; import org.apache.pdfbox.pdmodel.interactive.annotation.*; import org.apache.pdfbox.pdmodel.interactive.documentnavigation.destination.PDDestination; @@ -401,6 +402,7 @@ public class Main { PDOutlineItem current = bookmark.getFirstChild(); while (current != null) { try { + res.add("BookmarkTitle:\t\t" + StringEscapeUtils.escapeHtml4(current.getTitle())); res.add("BookmarkLevel:\t\t" + level); res.add("BookmarkPage:\t\t" @@ -690,6 +692,9 @@ public class Main { } public static String getPageFromAction(PDDocument doc, PDAction a) throws IOException { + if(a instanceof PDActionRemoteGoTo){ + return "-1"; + } PDActionGoTo aa = (PDActionGoTo) a; if (null == a) { return "-1";