​getPdf​/{formId} (GET)

The getPdf endpoint returns a blank and unflattened pdf for the requested form ID. It is returned as a byte stream with an Accept header value of application/pdf. See the getAllFormIds endpoint for the available form IDs.

Accept Header

curl --location --request GET 'https://api-staging.symmetry.com/spf/getPdf/W4101' \
--header 'Accept: application/pdf' \
--header 'Authorization: Bearer yoUrTokEnG0esH3re!

Sample PDF Byte Stream Response

Below is a truncated byte stream response for a typical getPdf endpoint request.

2555 0 obj
<</Linearized 1/L 104187/O 2557/E 37116/N 4/T 103652/H [ 663 318]>>
2597 0 obj
<</DecodeParms<</Columns 4/Predictor 12>>/Filter/FlateDecode/ID[<F14163AEF278624BA3425A8083743D2C><D4ADC0335EAE45F49A59756AEF6654D9>]/Index[2555 97]/Info 2554 0 R/Length 147/Prev 103653/Root 2556 0 R/Size 2652/Type/XRef/W[1 2 1]>>stream
$�փ�[email protected]��D���u �2�(��U����28�����@��@Bx�`�q�X@�U��* B�X$&R�  ���?Hp�  �e �� %�C �`��������p&F�Y %�#�����@�

Support for Multiple Form Revisions

SPF-API can support multiple form versions or revisions. You can request a specific form using the ​getPdf​/{formId} (GET) endpoint. Specifying a form version can be accomplished with a the formVersion query parameter. This is an optional query param and if not included, will provide the latest form version.


Form Versioning Syntax Example


What’s Next
Jump to top