diff --git a/renderers/pdf/writer.go b/renderers/pdf/writer.go index 119e0c76..9aeaf390 100644 --- a/renderers/pdf/writer.go +++ b/renderers/pdf/writer.go @@ -633,7 +633,7 @@ func (w *pdfPageWriter) AddURIAction(uri string, rect canvas.Rect) { "Type": pdfName("Annot"), "Subtype": pdfName("Link"), "Border": pdfArray{0, 0, 0}, - "Rect": pdfArray{rect.X, rect.Y, rect.W, rect.H}, + "Rect": pdfArray{rect.X * ptPerMm, rect.Y * ptPerMm, (rect.X + rect.W) * ptPerMm, (rect.Y + rect.H) * ptPerMm}, "Contents": uri, "A": pdfDict{ "S": pdfName("URI"),