summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2022-02-27 03:51:50 +0000
committerAdrian Johnson <ajohnson@redneon.com>2022-02-27 03:51:50 +0000
commit1a799577b2c7bcd3757211adcc4e46abb3bdfc97 (patch)
tree4231589520330f2536ff73142e1f5b0357fae318 /test
parentb0b294b827cf8d40e752231124b4a3bd0fda83df (diff)
parent895b249b0ac6d2c45f47423f6529359991a66c3c (diff)
downloadcairo-1a799577b2c7bcd3757211adcc4e46abb3bdfc97.tar.gz
Merge branch 'issue-526' into 'master'
pdf: ensure urls and filename strings are correctly encoded Closes #526 See merge request cairo/cairo!266
Diffstat (limited to 'test')
-rw-r--r--test/pdf-tagged-text.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/pdf-tagged-text.c b/test/pdf-tagged-text.c
index 1e5abcae8..378e6a920 100644
--- a/test/pdf-tagged-text.c
+++ b/test/pdf-tagged-text.c
@@ -358,6 +358,12 @@ draw_cover (cairo_surface_t *surface, cairo_t *cr)
cairo_show_text (cr, "link to page section 3.3");
cairo_tag_end (cr, CAIRO_TAG_LINK);
+ /* Create link to external file */
+ cairo_tag_begin (cr, CAIRO_TAG_LINK, "file='foo.pdf' page=1");
+ cairo_move_to (cr, PAGE_WIDTH/3, 4.4*PAGE_HEIGHT/5);
+ cairo_show_text (cr, "link file 'foo.pdf'");
+ cairo_tag_end (cr, CAIRO_TAG_LINK);
+
draw_page_num (surface, cr, "cover", 0);
}