diff options
Diffstat (limited to 'src/java/org/apache/fop/pdf/PDFLink.java')
-rw-r--r-- | src/java/org/apache/fop/pdf/PDFLink.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/pdf/PDFLink.java b/src/java/org/apache/fop/pdf/PDFLink.java index e0cd2a661..377f4e592 100644 --- a/src/java/org/apache/fop/pdf/PDFLink.java +++ b/src/java/org/apache/fop/pdf/PDFLink.java @@ -71,8 +71,9 @@ public class PDFLink extends PDFObject { * @see org.apache.fop.pdf.PDFObject#toPDFString() */ public String toPDFString() { + getDocumentSafely().getProfile().verifyAnnotAllowed(); String fFlag = ""; - if (getDocumentSafely().getPDFAMode().isPDFA1LevelB()) { + if (getDocumentSafely().getProfile().getPDFAMode().isPDFA1LevelB()) { int f = 0; f |= 1 << (3 - 1); //Print, bit 3 f |= 1 << (4 - 1); //NoZoom, bit 4 |