Skip to main content
Known Participant
August 31, 2021
Question

[PDF Embed API] Comments option is enabled although i disabled it

  • August 31, 2021
  • 4 replies
  • 3090 views

This happens only with large files(over 80mb)

my config:

const customFlags = {
showToolbar: false,
showCommentsPanel: false,
downloadWithAnnotations: false,
showToolsOnTextSelection: true,
printWithAnnotations: false
};

 

    This topic has been closed for replies.

    4 replies

    Inspiring
    October 24, 2023

     im having the same issue.

     

    Setting showAnnotationTools:false solves it but it disables PDF annotations alltogether, I need a way to disable the comments sidebar.. There is no way for me to tell whether the PDF allows commenting or not, so when the config fails to apply due to PDF not allowing comments, it fails to disable the comments panel in the setconfig method looks like

    Joel Geraci
    Community Expert
    Community Expert
    September 1, 2021

    I haven't been able to reproduce this issue. The file I'm using is 89MB.

    Alon5FCDAuthor
    Known Participant
    September 1, 2021

    Apparently, it does not relate to file size. I used an ebook file (sent it to isaac). https://drive.google.com/file/d/12Xp20xZKFIvS7SjeDS57lOTCwac_widN/view?usp=sharing

    If you can't see it,please send me your email address or something.

    Your app can't work with this pdf & I must know why.

    Thank you

    Joel Geraci
    Community Expert
    Community Expert
    September 1, 2021

    I've requested access to the file.

    Raymond Camden
    Community Manager
    Community Manager
    September 1, 2021

    I did a test with a large PDF and used the option, showAnnotationTools:fase, and it worked fine. Can you try that?

    Inspiring
    October 24, 2023

    @Raymond Camden im having the same issue.

     

    Setting showAnnotationTools:false solves it but it disables PDF annotations alltogether, I need a way to disable the comments sidebar.. There is no way for me to tell whether the PDF allows commenting or not, so when the config fails to apply due to PDF not allowing comments, it fails to disable the comments panel in the setconfig method looks like

    Adobe Employee
    August 31, 2021

    Where do you see the commenting options? Please share screenshots and rest of the code snippet, if possible. 

     

    You can pass these custom flags to the setConfig annotation API OR annotationUIConfig object in previewFile API.

    Alon5FCDAuthor
    Known Participant
    August 31, 2021

    Please see attached. sharing the code is a bit impossible for me.