pdf_serve
Serves a PDF document.
Target
Signature
1pdf_serve(doc::pdf_doc, -file, -type= ?)Serves a PDF document.
pdf_serve is a global callable that can be used wherever an expression is valid. pdf_serve works with structured document or media data. Keep parsing, transformation, and output steps separate enough that each step can be checked on its own.
Parameters
doc- Required value of type
pdf_doc. Supplydocpositionally unless the signature shows a keyword form. -file- Required value. Supply
-fileby keyword, keeping the leading hyphen in the call. -type- Optional value. Supply
-typeby keyword, keeping the leading hyphen in the call.
Examples
Basic call
1pdf_serve(#pdf, -file='report.pdf')The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.