Referencia
Provider configuration
- provideMarkpdf (standalone)
- MarkpdfModule.forRoot (NgModule)
@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
baseUrl + convertPath). Returns:
Observable<string>by default.Observable<ConversionResult>ifoptions.responseFormat === "json".Observable<UploadEvent>ifhttp.reportProgress === true(emits progress events and a final event{ type: "result", markdown }or{ type: "result", ...ConversionResult }).
convertFromUrl
convertStream
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
HttpClient with reportProgress: true and observe: "events", filtering and remapping Angular events (HttpEventType.UploadProgress, HttpEventType.Response) to the simplified form UploadEvent.
Tipos
@markpdf/angular.