This topic contains 2 replies, has 0 voices, and was last updated by karenn 7 years, 10 months ago.

  • Author
    Posts
  • #1286

    karenn

    Hello all,

    We have a Suitelet that produces a PDF. It was written in 1.0 and trying to convert to 2.0. It was all moving along until I got to the line

    response.setContentType(‘PDF’, ‘WillCallOrder.pdf’, ‘inline’);

    2.0 of course does not like this and I have been unable to find the 2.0 equivalent. Any ideas?

    Thanks,

    Karen
    This is a cached copy. Click here to see the original post.

  • #1287

    darrenhillconsulting

    context.response.renderPdf({ xmlString: reportData.pdfXML });

  • #1291

    karenn

    Thanks Darren.

    PDF is displaying. Now I have to figure out why my data is missing. Conversions is just so much fun…not

You must be logged in to reply to this topic.