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

  • Home
  • SEARCH
  • 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 9317109
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T02:47:42+00:00 2026-06-19T02:47:42+00:00

I want to render some text followed by a few single row tables. If

  • 0

I want to render some text followed by a few single row tables. If I try the following:

pdf.text "Credit Card Number: "
4.times do
  pdf.table [Array.new(4, Prawn::Text::NBSP)]
  pdf.text " "
end

…each element ends up on its own line. Is there a simple way to make them render inline?

  • 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-06-19T02:47:43+00:00Added an answer on June 19, 2026 at 2:47 am

    Just create table with subtables, like this:

    require 'prawn'
    
    Prawn::Document.generate('ccn.pdf') do |pdf|
      pdf.text "Credit Card Number: "
      tbl = pdf.make_table([Array.new(4, Prawn::Text::NBSP)])
      pdf.table([[ tbl, " ", tbl, " ", tbl, " ", tbl ]],
        :cell_style => { :borders => []} )
    end 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to be able to render a Grid while the number of some
I want to render some text on one of my screens that has a
Suppose I want to render/present a text transmitted in the form of some lightweight
I'm trying to render some text in Rails with simple_format, but I want to
How to override EditorFor layout? For example if i want to render some text
I want to render some text as image in ASP.NET. It is working well,
Given a rectangular area, I want to render some text using a specific font
I want to during the page render remove some html from the page (don't
I'm trying to create an image with some text on it and I want
I have a following xslt: <span><xsl:text disable-output-escaping=yes><![CDATA[&nbsp;Some text]]></xsl:text></span> After transformation I get: <span>&amp;nbsp;Some text</span>

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.