Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Fesex Ship Manager API for ShipRequest


Recommended Posts



I am getting ShipReply XML from Fedex Ship Manager. Label is Base64 Binary format. How to convert this into a PDF? Any help is appriciated.



I am working on a private contribution that creates labels with DHL's ShipIT API and works somewhat the same way it sounds like. If you are supposed to be getting a pdf back and it is base64 encoded, simply grab the relevant data, put it into base64_decode(data), then say header('Content-Type: application/pdf'), then echo it out:


header('Content-Type: application/pdf');

echo base64_decode(data);


make sure you are doing this without outputting anything to the screen (no <html> or <?xml>, etc) and don't output anything after. the only thing the server should be sending back is the header and the echo.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...