Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1096859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:20:36+00:00 2026-05-17T00:20:36+00:00

I am using the Rendering plugin to generate a PDF from within a Web

  • 0

I am using the Rendering plugin to generate a PDF from within a Web Flow. The problem is that I cannot get my end state to return the PDF response. If I call:

renderPdf(template: "/letter/generate/createpdf", model: [letter: flow.letter], filename: 'doc.pdf')

From within my end state action, it still tries to return an end state view. I can, however, put this in something like:

createpdf {
    action {
        renderPdf(template: "/letter/generate/createpdf", model: [letter: flow.letter], filename: 'doc.pdf')
        return
    }
    on("success").to "finish"
}

But then of course I get a:

java.lang.IllegalStateException: getOutputStream() has already been called for this response

I basically want my end state to return the PDF file. Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:20:37+00:00Added an answer on May 17, 2026 at 12:20 am

    I’m assuming this functionality works if it’s not within the context of a web flow. I’ve also noticed that some things don’t work quite as I expect on the end state of a web flow. I’m not clear exactly why that is, but when I’ve encountered situations like this I have typically resorted to handling it with a redirect to another action. So essentially just pass your flow.letter as a param to another action outside of the webflow; that approach has fixed a number of webflow related problems for me. Unfortunately I don’t have access to my code at the moment, because I seem to recall some nuances around parameters staying in scope when using a redirect at the end of a webflow. If you run into problems post them here and I’ll take a look.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to save a simple template to pdf using the rendering plugin,
I am generating a pdf using grails rendering plugin. When in development, I include
I've been using the jQuery.svg plugin to do some SVG rendering and it works
I have an image that I want to resize on my websites rendering using
Using OpenGL ES I am rendering a simple cube class that draws it at
I'm rendering PDF pages on iPhone using the code below. It works, but the
so I have a file that will get $_GET['id'] from an ajax request here
For rendering SVG I'm using jQuery SVG plugin. And, now I want to add
So, I have a django project that is using jinja2 rendering, and I also
I am using jQuery Datatable plugin for rendering a table as jQuery DataTable. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.