Referencia
createConvertStore(client)
MarkpdfClient
required
Instance of
MarkpdfClient (re-exported from @markpdf/svelte, identical to @markpdf/sdk).ConvertStore: a Svelte store (Readable<ConvertState>) with two methods added.
ConvertStore
convert(file, options)
Upload a File/Blob via POST /convert (multipart), reporting progress via XMLHttpRequest (the store updates its status in each progress event).
File
required
<input type="file"> file, drag-and-drop, etc.ConvertOptions
Promise<void> — resolves when the store has finished updating (reads $store.markdown/$store.json for the result, not the return value).
reset()
Returns the store to its initial state (status: "idle", without markdown/json/error).
ConvertState
MarkpdfClient (reexportado)
@markpdf/sdk client — same methods (convertFile, convertFromUrl, convertStream, pdfIndex, getJob) and constructor options.
