Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

224
Vistas
Adobe PDF Embed API - How to generate the file ID for metaData

I am using Adobe PDF Embedded API to view, edit & save the PDF and it is working fine.

To get the annotations I have found the below code:

 document.addEventListener("adobe_dc_view_sdk.ready", function()

 {

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

  var previewFilePromise = adobeDCView.previewFile({

   content:   {location: {url: "https://documentcloud.adobe.com/view-sdk-demo/PDFs/Bodea Brochure.pdf"}},
   //id is 
   metaData:  {
          fileName: "Bodea Brochure.pdf", 
           /* file ID */
          id: "77c6fa5d-6d74-4104-8349-657c8411a834"}

  },

  {

   enableAnnotationAPIs: true,

  });


  previewFilePromise.then(adobeViewer => {

   adobeViewer.getAnnotationManager().then(annotationManager => {

    // All annotation APIs can be invoked here

   });

  });

 });

Found this note from the documentation:

To enabled the annotation APIs, you must pass a PDF ID in the metadata field when invoking the previewFile API. This ID uniquely identifies the PDF so that annotations can be added.

Can anyone tell me how to get the PDF ID to add inside a metaData Object.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda