many thanks, Filip; I'll give it a shot and let you know what I find!

On Wed, Sep 1, 2010 at 6:05 AM, Filip <[email protected]> wrote:
> Hello Alex,
> i have recently ran into same problem with wkhtmltopdf,
> on my fairly complex view it timed out, while on simple (i.e CRUD
> views) it worked fine.
> I assume you are using pdfkit gem's middleware to simply generate the
> files.
>
> If that is the case, turn the middleware off and configure your pdf
> print in respond_to block in your controller's action
> This worked for me, now even the complex view generates as quickly as
> the simple views and i have complete control over which action gets a
> pdf view
>
> Hope it helps,
> Filip
>
> On 24 srp, 14:14, Alex Killough <[email protected]> wrote:
>> Hi all--
>>
>> I'm attempting to render a pdf of an html view in my sinatra app.
>> Locally, wkhtmltopdf works, but times-out on heroku. I'd prefer not to
>> shell over an additional $20/month and set up delayed jobs; is there
>> an alternate route anyone has had success with? PrinceXML is out due
>> to price, and I'm a bit scared off by prawn due to syntax and the git
>> submodule issue.
>>
>> Many thanks,
>> Alex
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/heroku?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to