

So, whilst I appreciate you are receiving your PDF from a SOAP webservice, my point is that it should be possible to use a data URI, but I think something is going awry with your response.ĮDIT Your XML response shows you are not working with PDF: Return 'data:application/pdf base64,' + EncodingUtil.base64Encode(contentData) PageReference pdf = new PageReference('/apex/TestPage') īlob contentData = pdf.getContentAsPDF() I have been able to successfully use a data URI as the SRC to an iframe (which is similar to what you are trying to do), e.g. Response is an xml, (with an LOTS OF CHARACTERS) so how do I get it to pdf? '' + dimensionWidth + '' + dimensionHeight +Ībove is the soapXMl request with # censoring information. '' + recipientStateOrProvinceCode + '' + recipientPostalCode + '' + recipientStreetLines + '' + recipientCity + '' + recipientEmail + '' + recipientStreetLines + '' + recipientCompany + '' + recipientPhone + '' + shipperPostalCode + '' + shipperCountr圜ode + '' + shipperCity + '' + shipperStateOrProvinceCode + '' + shipperEmail + '' + shipperStreetLines + '' + shipperCompany + '' + shipperPhone + + fedexUserPassword + '' + clientDetailAccNum + String recipientStateOrProvinceCode = 'AR' String recipientStreetLines = '2000 Freight LTL Testing' String shipperStateOrProvinceCode = 'AR' String shipperStreetLines = '1202 Chalet Ln' PS: I have tried returning xml, retContentFile, retBlob, and res So I am wondering if my problem is in the code above or does it have to do with the SOAPxml response I am getting back from my endpoint? When the PDF preview page launches, it says: Currently I am doing this by: public Blob getPDF()" I am trying to get a pdf from a httpresponse.
