diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2021-07-28 07:18:25 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2021-07-29 07:31:31 +0930 |
commit | ca1fb44dd367eaa1a544a2655425b0313c758ca2 (patch) | |
tree | 123b57ad01e9f0ccf9bb588afd8e2a8552b0b874 /test/pdf-tagged-text.c | |
parent | 47e6764de620f24a7b0c36f53c1fb8a3b5de8a6c (diff) | |
download | cairo-ca1fb44dd367eaa1a544a2655425b0313c758ca2.tar.gz |
pdf links: fix forward references to dest names with 'internal' flag
Diffstat (limited to 'test/pdf-tagged-text.c')
-rw-r--r-- | test/pdf-tagged-text.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/test/pdf-tagged-text.c b/test/pdf-tagged-text.c index 5bfb55886..1e94edf1e 100644 --- a/test/pdf-tagged-text.c +++ b/test/pdf-tagged-text.c @@ -352,6 +352,12 @@ draw_cover (cairo_surface_t *surface, cairo_t *cr) cairo_show_text (cr, "link to page 5"); cairo_tag_end (cr, CAIRO_TAG_LINK); + /* Create link to not yet emmited destination */ + cairo_tag_begin (cr, CAIRO_TAG_LINK, "dest='Section 3.3'"); + cairo_move_to (cr, PAGE_WIDTH/3, 4.2*PAGE_HEIGHT/5); + cairo_show_text (cr, "link to page section 3.3"); + cairo_tag_end (cr, CAIRO_TAG_LINK); + draw_page_num (surface, cr, "cover", 0); } @@ -561,12 +567,7 @@ create_pdf (cairo_test_context_t *ctx, cairo_bool_t check_output) static cairo_test_status_t preamble (cairo_test_context_t *ctx) { - cairo_surface_t *surface; - cairo_t *cr; - cairo_status_t status, status2; cairo_test_status_t result; - char *filename; - const char *path = cairo_test_mkdir (CAIRO_TEST_OUTPUT_DIR) ? CAIRO_TEST_OUTPUT_DIR : "."; if (! cairo_test_is_target_enabled (ctx, "pdf")) return CAIRO_TEST_UNTESTED; |