Skip to main content

Quickstart

Component with MarkpdfService

upload.component.ts
MarkpdfService.convertFile returns a Observable<string> (or Observable<ConversionResult> with responseFormat: "json"), consistent with the rest of Angular’s API.
MarkpdfService calls baseUrl (the one you configured with provideMarkpdf/forRoot), which must point to your own backend, not directly to api.markpdf.tech — otherwise you would expose your API key in the browser. See Framework Guide.

With async pipe

Upload progress

See Reference for details of the events.

Siguiente paso