PDF API Examples
Use these examples to create document processing jobs, poll status, and download finished files through the Fiscor PDF API.
Quick answer
The Fiscor PDF API uses asynchronous jobs. Send a file to /api/v1/jobs/{operation}, poll /api/v1/jobs/{jobId}, then download the result from /api/v1/jobs/{jobId}/download.
curl: PDF to Word
export FISCOR_PDF_API_KEY="YOUR_API_KEY"
export FISCOR_PDF_BASE_URL="https://pdf.fiscor.am/api/v1"
curl -X POST "$FISCOR_PDF_BASE_URL/jobs/pdf-to-word" \
-H "Authorization: Bearer $FISCOR_PDF_API_KEY" \
-F "file=@./input.pdf"
curl "$FISCOR_PDF_BASE_URL/jobs/JOB_ID" \
-H "Authorization: Bearer $FISCOR_PDF_API_KEY"
curl -L "$FISCOR_PDF_BASE_URL/jobs/JOB_ID/download" \
-H "Authorization: Bearer $FISCOR_PDF_API_KEY" \
-o output.docx
C# HttpClient
using var http = new HttpClient {
BaseAddress = new Uri("https://pdf.fiscor.am/api/v1/")
};
http.DefaultRequestHeaders.Authorization =
new AuthenticationHeaderValue("Bearer", apiKey);
await using var stream = File.OpenRead("input.pdf");
using var form = new MultipartFormDataContent();
form.Add(new StreamContent(stream), "file", "input.pdf");
var create = await http.PostAsync("jobs/pdf-to-word", form);
create.EnsureSuccessStatusCode();
JavaScript fetch
const form = new FormData();
form.append("file", fileInput.files[0]);
const response = await fetch("https://pdf.fiscor.am/api/v1/jobs/pdf-to-word", {
method: "POST",
headers: { Authorization: `Bearer ${apiKey}` },
body: form
});
const job = await response.json();
Useful operations
pdf-to-wordword-to-pdfpdf-to-excelpdf-ocrmerge-pdfsplit-pdf
compress-pdfremove-pagesrotate-pdfpdf-to-jpgjpg-to-pdfbase64-encode
Postman
Import the collection, set apiKey in your Postman environment, then run discovery, create job, status, and download requests.
https://github.com/Arrock12/fiscor-pdf-api-examples
https://pdf.fiscor.am/openapi.json
https://pdf.fiscor.am/downloads/fiscor-pdf-api.postman_collection.json
https://pdf.fiscor.am/downloads/fiscor-pdf-api.postman_environment.json
https://pdf.fiscor.am/downloads/fiscor-pdf-api-examples.zip