Have you seen this? https://www.usps.com/election-mail/creating-imb-election-mail-kit.pdf
-----Original Message----- From: ProFox [mailto:profox-boun...@leafe.com] On Behalf Of Kevin Cully Sent: Tuesday, October 22, 2013 9:28 PM To: profoxt...@leafe.com Subject: [NF] Display PDF from USPS response I'm working on a small PHP project where my client repairs mechanical devices for clients. Their clients fill out their web form and then would like to receive a PDF version of their Merchandise Return Label for them to mail their device back for repair. 1. Form = Done 2. Web service call to USPS = Done 3. USPS is responding with the encoded PDF version of the label in their response = Not sure what to do with it. [A] Should I save it to the web server, and respond with a page that points to it and gives additional instructions? [B] Should I somehow trigger the PDF to be downloaded via the browser, and give additional instructions to the user? [C] ... some other solution that I haven't thought of. I hate the thought of option 'A' as I never want to write a file to the server. I'd like to do 'B' but I'm not quite sure how to get the flow to work properly. Example code would be greatly appreciated. Many thanks, Kevin [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/0c1901cecf98$0e336170$2a9a2450$@gmail.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.