Disable link boxes in PDF

This commit is contained in:
Laurenz 2023-02-13 17:53:19 +01:00
parent 17e9805b34
commit e64b2379a8

View File

@ -113,6 +113,7 @@ fn write_page(ctx: &mut PdfContext, page: Page) {
for (dest, rect) in page.links { for (dest, rect) in page.links {
let mut link = annotations.push(); let mut link = annotations.push();
link.subtype(AnnotationType::Link).rect(rect); link.subtype(AnnotationType::Link).rect(rect);
link.border(0.0, 0.0, 0.0, None);
match dest { match dest {
Destination::Url(uri) => { Destination::Url(uri) => {
link.action().action_type(ActionType::Uri).uri(Str(uri.as_bytes())); link.action().action_type(ActionType::Uri).uri(Str(uri.as_bytes()));