pdf: Move internal link related functions to internal header.
authorSebastian Rasmussen <[email protected]>
Fri, 23 Jun 2023 01:22:50 +0000 (03:22 +0200)
committerSebastian Rasmussen <[email protected]>
Thu, 6 Jul 2023 12:03:23 +0000 (14:03 +0200)
include/mupdf/pdf/annot.h
source/pdf/pdf-annot-imp.h
source/pdf/pdf-outline.c

index f78a7d4fcaa71914b84455e1bf4bc1a08774bf57..71a0e3a106a9b443804008102798684f5fe78970 100644 (file)
@@ -262,11 +262,6 @@ void pdf_walk_tree(fz_context *ctx, pdf_obj *tree, pdf_obj *kid_name,
 int pdf_resolve_link(fz_context *ctx, pdf_document *doc, const char *uri, float *xp, float *yp);
 fz_link_dest pdf_resolve_link_dest(fz_context *ctx, pdf_document *doc, const char *uri);
 
-/*
-       Create a destination object given an internal link URI.
-*/
-pdf_obj *pdf_new_destination_from_link(fz_context *ctx, pdf_document *doc, const char *uri);
-
 /*
        Create an action object given a link URI. The action will
        be a GoTo or URI action depending on whether the link URI
@@ -285,12 +280,6 @@ pdf_obj *pdf_new_action_from_link(fz_context *ctx, pdf_document *doc, const char
 */
 char *pdf_format_link_uri(fz_context *ctx, fz_link_dest dest);
 
-/*
-       Parse an internal link URI that uses the Adobe specification
-       "parameters for opening PDF files".
-*/
-fz_link_dest pdf_parse_link_uri(fz_context *ctx, const char *uri);
-
 /*
        Create transform to fit appearance stream to annotation Rect
 */
@@ -843,8 +832,6 @@ fz_buffer *pdf_load_embedded_file_contents(fz_context *ctx, pdf_obj *fs);
 */
 int pdf_verify_embedded_file_checksum(fz_context *ctx, pdf_obj *fs);
 
-char *pdf_parse_link_dest(fz_context *ctx, pdf_document *doc, pdf_obj *obj);
-char *pdf_parse_link_action(fz_context *ctx, pdf_document *doc, pdf_obj *obj, int pagenum);
 pdf_obj *pdf_lookup_dest(fz_context *ctx, pdf_document *doc, pdf_obj *needle);
 fz_link *pdf_load_link_annots(fz_context *ctx, pdf_document *, pdf_page *, pdf_obj *annots, int pagenum, fz_matrix page_ctm);
 
index 4c42d2b887e9dae60cdbf04db6a6d847f6fb0f66..78b8b1ea0a367ccc83cd1894cd9badba2dcabe74 100644 (file)
@@ -56,4 +56,18 @@ void pdf_drop_widgets(fz_context *ctx, pdf_annot *widget_list);
 
 void pdf_set_annot_has_changed(fz_context *ctx, pdf_annot *annot);
 
+/*
+       Create a destination object given an internal link URI.
+*/
+pdf_obj *pdf_new_destination_from_link(fz_context *ctx, pdf_document *doc, const char *uri);
+
+/*
+       Parse an internal link URI that uses the Adobe specification
+       "parameters for opening PDF files".
+*/
+fz_link_dest pdf_parse_link_uri(fz_context *ctx, const char *uri);
+
+char *pdf_parse_link_dest(fz_context *ctx, pdf_document *doc, pdf_obj *obj);
+char *pdf_parse_link_action(fz_context *ctx, pdf_document *doc, pdf_obj *obj, int pagenum);
+
 #endif
index 3838192d3b3fca1003b73e1545fc72817ad913d8..92a7c5e8b402172e17085f53258d4e90c5122658 100644 (file)
@@ -22,6 +22,7 @@
 
 #include "mupdf/fitz.h"
 #include "mupdf/pdf.h"
+#include "pdf-annot-imp.h"
 
 #include <string.h>
 #include <math.h>