The contents of that PdfDocument
is a ZIP file - the first three letters ("UEs") decode to "PK" which is the magic identifier for ZIP files. For testing purposes, you can use this website to download a copy of that ZIP. PHP has functions that let you do the same, you'll have to check what's compiled into your PHP version.
The contents of said ZIP archive is a single file labeled PackageLabels.pdf
which is the PDF you're looking for.
The Checksum
is also base64-encoded and the one in your example decodes to 9f409db70ba9cfd57af079cca741a8ed
. This is supposed to be the MD5 hash of the document data. However, I have yet to find out how exactly it is calculated. It did NOT match the MD5 of any of the following:
- The raw Base64 encoded string
- The zip file
- The contained pdf file