nutan Posted April 30, 2007 Share Posted April 30, 2007 Hi, 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. Thanks Quote Link to comment Share on other sites More sharing options...
borghe Posted May 6, 2007 Share Posted May 6, 2007 Hi, 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. Thanks 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.