Skip to main content
Participant
August 17, 2021
Question

PDFEmbed SDK Typescript Definition

  • August 17, 2021
  • 0 replies
  • 749 views

Does Adobe publish a typescript definition for the SDK?

I've been trying to build one myself but its is very difficult to put together, as there is no comprehensive list of properties any particular option takes.


Here is some portions i've completed. You can see how difficult it is to stitch this together.

 

export namespace AdobePdfSdk {
  export interface ViewerConfig {
    enableAnnotationAPIs?: boolean;
    showDisabledSaveButton?: boolean;
    showAnnotationTools?: boolean;
    showLeftHandPanel?: boolean;
  }

  export enum EmbedModes {
    'SIZED_CONTAINER' = 'SIZED_CONTAINER',
    'IN_LINE' = 'IN_LINE',
  }
....

 This is the worst part of the closed source project, it is impossible to inspect the code and without comprehensive documentation it is soo hard.

This topic has been closed for replies.