Annotations cannot function properly when open a Optimized(linearized) PDF

52 views
Skip to first unread message

Jessie Lin

unread,
Nov 18, 2016, 1:19:56 PM11/18/16
to PDFTron WebViewer
Hi, 

I have a problem to open a optimized PDF on WebViewer with given annotations(XFDF).  'Accept-Rage: bytes' is added in the response header and the file type is PDF. The given annotation is not able to be modified or display on WebViewer. I have this problem since version 2.2.0. I tried with version 2.2.1 but the problem is still there even though the behavior and sympthon are slightly different . 

version 2.2.0: The serverUrl is triggered and the annotations appear. However when the Note Panel is trogged. then annotations disapper. 
version 2.2.1: The serverUrl is NOT triggered and the annotations from XFDF do not appear. 

In version 2.2.0 , if I setup a breakpoint at server to slow the response for XFDF, then the annotation will appear and function normal after PDF is loaded. According to this, I think it seems to be the AJAX call get XFDF too quick before the PDF is fully loaded. However, there is no option to configure when or how the XFDF to be loaded. 

I would like to know what I can do to solve this problem. Thank you.

Best regards,
Jessie



Matt Parizeau

unread,
Nov 21, 2016, 2:22:27 PM11/21/16
to PDFTron WebViewer
Hi Jessie,

For now you'll have to set the option useDownloader: false in the PDFTron.WebViewer constructor. We're currently working on having this behave properly when useDownloader is set to true.

Matt Parizeau
Software Developer
PDFTron Systems Inc.

Jessie Lin

unread,
Nov 22, 2016, 1:09:53 PM11/22/16
to PDFTron WebViewer
HI Matt, 

After setting useDownloader to false it's working. Thank you.

Regards,
Jessie
Reply all
Reply to author
Forward
0 new messages