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 274429
In Process

The Archive Base Latest Questions

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

I need to produce somewhat complicated PDFs from a Rails app – tables with

  • 0

I need to produce somewhat complicated PDFs from a Rails app – tables with column spans, styling, nested tables etc

I’ve looked at Prawn and I’m not sure it provides enough flexibility and HTMLDOC seems to be severely lacking in CSS support,

are there any other options out there?

thanks,

john.

  • 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-12T00:36:33+00:00Added an answer on May 12, 2026 at 12:36 am

    Disclaimer: I’m a regular committer to the prawn project.

    Prawn isn’t built on top of PDF::Writer – it’s a replacement written from the ground up that avoids many of the limitations. I’d advise against PDF::Writer. It’s old, difficult to use and doesn’t support Unicode text.

    Depending on the kind of document you need to generate, you have a few options:

    RTex is a rails plugin that uses latex to generate PDF output. If you need to generate a formatted document with lots of text and you’re happy with the (huge) latex dependency, it’s a nice solution.

    If you like the idea of a HTML->PDF conversion (like HTMLdoc but you know… good), you could try PrinceXML. There’s a free version, but it watermarks the output. The licensed version is a few thousand dollars. The output is great, thanks to useful CSS support. There is at least 1 plugin that helps you integrate Prince with Rails – princely.

    For generating the output with Ruby syntax, Prawn is your best option. Manually building the pages of your output gives you plenty of fine grained control, but you can get bogged down in co-ordinate maths. It’s also not capable of at least one of the features you require – nested tables.

    Which one works for you really depends on the style of document you need to generate.

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

Sidebar

Related Questions

I have need to produce LINE, BAR, and PIE charts in Rails. I have
I need to produce the column required in the following table using SQL without
I need to produce some quality screen shots of screens in my app. I'd
I have a kitchen heating meals from frozen, they need to produce meals to
I'm working on a project in which I need to produce messages from node.js
I need to produce a date in Rails which looks like this: /Date(1294268400000)/ I
I need to produce an id surrounded by braces ( for example {1234} ).
Please help! I need to produce a Crystal Report with multiple data columns, but
I'm currently having non-utf-8 DB but I need to produce XMLType variable with utf-8
I wish I could figure this out. I need to produce a table with

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.