Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

enableAnnotationAPIs disables the custom text button

Community Beginner ,
Nov 19, 2020 Nov 19, 2020

Hi,

When I enable the "enableAnnotationAPIs" the add text comment button disappears from the UI. see attached image.

 

my code is attached

 

const viewerConfig = {
        // enableAnnotationAPIs: true,
        showLeftHandPanel: true,
        showDownloadPDF: true,
        showPrintPDF: true,
        showPageControls: true,
        dockPageControls: true,
        defaultViewMode: ""
};

$timeout(function () {

        var adobeDCView = new AdobeDC.View({
                clientId: clientID,
                divId: "adobe-dc-view-desktop"
        });

        var previewFilePromise = adobeDCView.previewFile({
                content: {
                        location: {
                                url: $scope.pdfsrc
                        }
                },
                metaData: {
                        fileName: $rootScope.pdfName,
                        id: $rootScope.pdfID
                }
        }, viewerConfig);

        const eventOptions = {
                listenOn: [
                        "ANNOTATION_ADDED",
                        "ANNOTATION_CLICKED",
                        "ANNOTATION_DELETED",
                        "ANNOTATION_UPDATED"
                ]
        };
        const customFlags = {
                showToolsOnTextSelection: true
        };

        // add save functionality here.
        previewFilePromise.then(adobeViewer => {
                adobeViewer.getAnnotationManager().then(annotationManager => {

                        annotationManager.setConfig(customFlags)
                                .then(() => console.log("Success"))
                                .catch(error => console.log(error));

                        annotationManager.registerEventListener(
                                function (event) {
                                        console.log(event.type, event.data)
                                }, eventOptions);


                });
        });

}, 1300);

 

TOPICS
PDF Embed API
948
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Nov 20, 2020 Nov 20, 2020

Hi,

 

Thank you for using Adobe Embed APIs. We haven't yet exposed Text annotation i.e. 'Add Text' tool via commenting APIs. That's the reason 'Add Text' tool is not available when you switch to API mode. It's however, available for consumption from standard commenting UX. We will roll out 'Add Text' annotation API shortly either this year itself or latest by January.

 

Thanks

Translate
Adobe Employee ,
Nov 20, 2020 Nov 20, 2020

Hi,

 

Thank you for using Adobe Embed APIs. We haven't yet exposed Text annotation i.e. 'Add Text' tool via commenting APIs. That's the reason 'Add Text' tool is not available when you switch to API mode. It's however, available for consumption from standard commenting UX. We will roll out 'Add Text' annotation API shortly either this year itself or latest by January.

 

Thanks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Nov 22, 2020 Nov 22, 2020

Thanks for the prompt reply. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 07, 2021 Jan 07, 2021
LATEST

@brajeshk12751679 is there an update to the release date for Text annotation release 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources