Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 539 Bytes

File metadata and controls

28 lines (20 loc) · 539 Bytes

MKTestAzureFunction

Azure Function (POST /api/extract-isdoc) that accepts a PDF payload, extracts an embedded ISDOC/XML attachment, and returns the XML body as application/xml.

Run locally

dotnet restore
dotnet build
func start

Example request

Raw PDF body:

curl -X POST "http://localhost:7071/api/extract-isdoc" \
  -H "Content-Type: application/pdf" \
  --data-binary @invoice.pdf

Multipart upload:

curl -X POST "http://localhost:7071/api/extract-isdoc" \
  -F "file=@invoice.pdf"