Quantcast
Channel: Adobe Community : Popular Discussions - PDF Language and Specifications
Viewing all articles
Browse latest Browse all 46145

Annotation is not resized

$
0
0

Hi,

 

I cannot succeed to define an annotation that is resized according to the zoom (as it should be, according to the PDF spec).

 

In the following, a square is drawn, then an annotation is defined with the same location and size as the drawn square. The square and the annotation have the same size with zoom 100%, but not with zoom 200%.

 

So how an annotation should be defined to be correctly rezised ?

 

 

%PDF-1.3

 

1 0 obj

<</Type /Pages

/Kids [3 0 R]

/Count 1

/MediaBox [0 0 300 250]

>>

endobj

 

2 0 obj

<<

/ProcSet [/PDF /Text]

>>

endobj

 

3 0 obj

<</Type /Page

/Parent 1 0 R

/Annots [5 0 R]

/Resources 2 0 R

/Contents 4 0 R>>

endobj

 

4 0 obj

<</Length 35>>

stream

0 0 1 RG

1 w

50 150 30 30 re

S

endstream

endobj

 

5 0 obj

<<

/Type /Annot

/Subtype /Text

/Contents (Foo)

/Rect [50 150 80 180]

/AP <</N 6 0 R>>

>>

endobj

 

6 0 obj

<< /Type /XObject

/Subtype /Form

/BBox [0 0 30 30]

/Resources << /ProcSet [/PDF] >>

/Length 17

>>

stream

0 0 30 30 re

f

endstream

endobj

 

7 0 obj

<<

/Type /Catalog

/Pages 1 0 R

/PageLayout /OneColumn

>>

endobj

 

xref % XREF TO BE CORRECTED

0 7

0000000000 65535 f

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

0000000001 00000 n

trailer

<<

/Size 7

/Root 7 0 R

>>

startxref

97882

%%EOF


Viewing all articles
Browse latest Browse all 46145

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>