Skip to main content

Referencia

Provider configuration

@markpdf/angular does not accept a apiKey option. It is designed to talk to your own backend, which is the one who knows the key. See Framework Guide.

MarkpdfService

Inyectable en cualquier componente, directiva o servicio:

convertFile

Upload the file to your backend (baseUrl + convertPath). Returns:
  • Observable<string> by default.
  • Observable<ConversionResult> if options.responseFormat === "json".
  • Observable<UploadEvent> if http.reportProgress === true (emits progress events and a final event { type: "result", markdown } or { type: "result", ...ConversionResult }).

convertFromUrl

convertStream

Emits a value for each Markdown fragment received (uses fetch with ReadableStream internally, wrapped in a Observable). Subscribe and concatenate the values ​​in order.

pdfIndex

getJob

ConvertOptions

Same fields as the rest of the SDKs, in camelCase β€” see Parameters of API:

Upload progress

Internally it uses HttpClient with reportProgress: true and observe: "events", filtering and remapping Angular events (HttpEventType.UploadProgress, HttpEventType.Response) to the simplified form UploadEvent.

Tipos

All are exported from @markpdf/angular.