<component name="AhkProjectSettings">
<option name="defaultAhkSdk" value="AutoHotkey" />
</component>
- <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6">
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
PDOutlineNode bookmark, int level) throws IOException {
PDOutlineItem current = bookmark.getFirstChild();
while (current != null) {
- res.add("BookmarkTitle:\t\t" + StringEscapeUtils.escapeHtml4(current.getTitle()));
- res.add("BookmarkLevel:\t\t" + level);
- res.add("BookmarkPage:\t\t"
- + getPageFromAction(doc, current.getAction()));
- addBookmark(doc, res, current, level + 1);
+ try {
+ res.add("BookmarkTitle:\t\t" + StringEscapeUtils.escapeHtml4(current.getTitle()));
+ res.add("BookmarkLevel:\t\t" + level);
+ res.add("BookmarkPage:\t\t"
+ + getPageFromAction(doc, current.getAction()));
+ addBookmark(doc, res, current, level + 1);
+ }catch (Exception e){
+
+ }
current = current.getNextSibling();
+
}
}
out.close();
}
+ public static String getPageFromRemoteGoToAction(PDDocument doc, PDAction a) throws IOException{
+ PDActionGoTo aa = (PDActionGoTo) a;
+ if (null == a) {
+ return "-1";
+ }
+ PDDestination d = aa.getDestination();
+ return getPageFromDestination(doc, d);
+ }
+
public static String getPageFromAction(PDDocument doc, PDAction a) throws IOException {
PDActionGoTo aa = (PDActionGoTo) a;
if (null == a) {