Quantcast
Channel: Adobe Community : Unanswered Discussions - Acrobat
Viewing all articles
Browse latest Browse all 73766

PDF annotation with link, image doesn't show, only in print or Google Chrome, not Adobe Reader main

$
0
0

We are creating PDF files with annotations, we are using the O2 Solutions PDF Library for C#. We used to create PDFStampAnnotations, but now we want to make the images clickable, to navigate to the URL belonging to the image.

 

 

Therefore, we are now using PDFLinkAnnotations, with a PDFImageAppearance.

We set the flags of the annotation to Print.

 

 

However, the annotation won't show in the PDF in Adobe Reader. It does show in the Google Chrome inline PDF viewer.

 

 

It also shows in the print preview window in Adobe Reader.

 

 

But it does not show in the normal view in Adobe Reader. What we do see is, when hovering over the rectangle that should contain our image, our mouse cursor becomes a hand and a tooltip with the link is displayed. If we click, everything works as expected. But we don't see an image!

 

 

What can we do about this? This is really annoying, as I don't have a clue why it won't work. Actually, to me, this looks like a bug in Adobe Reader?

 

 

Old (working, without link):

====================================================================== ===========

15 0 obj

<</Contents (DEV-1)

/M (D:20130222103743+01'00')

/Subj (TigrisTag)

/Subtype /Stamp

/F 4

/Name /Custom

/AP <</D 16 0 R

/N 16 0 R

>>

/CreationDate (D:20130222103743+01'00')

/Rect [560.349976 10.000023 601.999977 51.650024 ]

/NM (97c87adc-5494-440a-b0b4-eb606e358169)

/T (name)

/P 4 0 R

/Type /Annot

>>

endobj

16 0 obj

<</Resources <</XObject <</ImageStamp 17 0 R

>>

/ProcSet [/PDF /Text /ImageB /ImageC ]

>>

/BBox [0 0 39.20008 39.20008 ]

/Name /Form_4943204746964B4C8B728A4CBD79B339

/FormType 1

/Length 41

/Src (XO:/Form_4943204746964B4C8B728A4CBD79B339)

/Type /XObject

/Subtype /Form

/Matrix [1 0 0 1 0 0 ]

>>

stream

39.2001 0 0 39.2001 0 0 cm

/ImageStamp Do

endstream

endobj

17 0 obj

<</Width 245

/ColorSpace [/Indexed /DeviceRGB 1 18 0 R ]

/BitsPerComponent 1

/Filter /FlateDecode

/Length 471

/Subtype /Image

/Height 245

>>

stream

(stream contents)

====================================================================== ===========

 

 

New (not working, with link):

====================================================================== ===========

18 0 obj

<</Resources 4 0 R

/Type /Page

/Group <</CS /DeviceRGB

/S /Transparency

/I true

>>

/Annots [19 0 R ]

/MediaBox [0 0 595 842 ]

/Contents 23 0 R

/Parent 3 0 R

>>

endobj

19 0 obj

<</Contents (TigrisTag)

/A <</S /URI

/URI (http://localhost:50830/publications/code/DEV-8)

>>

/M (D:20130225170939+01'00')

/Subtype /Link

/F 4

/NM (6a41409d-b8fb-44b6-8a7c-ab1c73088869)

/Name /Image

/AP <</D 20 0 R

/N 20 0 R

>>

/Rect [544.506958 9.999985 585.000015 50.493042 ]

/BS <</W 0

>>

/CreationDate (D:20130225170939+01'00')

/H /I

/P 18 0 R

/Type /Annot

>>

endobj

20 0 obj

<</Resources <</XObject <</ImageStamp 21 0 R

>>

/ProcSet [/PDF /Text /ImageB /ImageC ]

>>

/BBox [0 0 39.20008 39.20008 ]

/Name /Form_119A6CEBB1C8452D962814D585C640CC

/FormType 1

/Length 41

/Src (XO:/Form_119A6CEBB1C8452D962814D585C640CC)

/Type /XObject

/Subtype /Form

/Matrix [1 0 0 1 0 0 ]

>>

stream

39.2001 0 0 39.2001 0 0 cm

/ImageStamp Do

endstream

endobj

21 0 obj

<</Width 245

/ColorSpace [/Indexed /DeviceRGB 1 22 0 R ]

/BitsPerComponent 1

/Filter /FlateDecode

/Length 467

/Subtype /Image

/Height 245

>>

stream

(stream)

endstream

endobj

====================================================================== ===========


Viewing all articles
Browse latest Browse all 73766

Trending Articles



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