Skip to main content
Known Participant
Aug 31, 2021 7:17 AM UTC
Question

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

This happens only with large files(over 80mb)

my config:

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

 

    This topic is closed to new replies. Start a new post to keep the conversation going.

    17 replies

    Inspiring
    Oct 24, 2023 7:43 PM UTC

     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

    Translate
    Joel Geraci
    Community Expert
    Community Expert
    Sep 1, 2021 3:03 PM UTC

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

    Translate
    Alon5FCDAuthor
    Known Participant
    Sep 1, 2021 8:21 PM UTC

    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

    Translate
    Joel Geraci
    Community Expert
    Community Expert
    Sep 1, 2021 9:17 PM UTC

    I've requested access to the file.

    Translate
    Raymond Camden
    Community Manager
    Community Manager
    Sep 1, 2021 3:00 PM UTC

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

    Translate
    Inspiring
    Oct 24, 2023 7:23 PM UTC

    @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

    Translate
    Adobe Employee
    Aug 31, 2021 11:31 AM UTC

    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.

    Translate
    Alon5FCDAuthor
    Known Participant
    Aug 31, 2021 11:53 AM UTC

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

    Translate