Solved

Force inline or simulate using css on a pdf

Posted on 2016-10-13
7
42 Views
Last Modified: 2016-10-13
I'm using gravitypdf to convert submitted forms into a pdf for printing.
On this form, https://www.injurylaworegon.com/agreement-for-legal-service.htm you can see the section of sign at / date is all on one line. It's using the built-in gf_inline class of gravity forms. When it converts to pdf, the pdf doesn't support the display: inline or display: inline-block. So the printable form shows each one of those fields on its own line instead of a single row.

These are legal forms, so I have to follow the format of their actual paper documents so I can't alter the fields to another look to work with css the pdf does accept.

Does anyone have any ideas of styling the gf_inline class to force them all on one line in the pdf conversion? (I apologize I can't show an example of what the pdf looks like because they're private legal documents and the preview option is only available to the site admins.)
0
Comment
Question by:Dzynit
  • 4
  • 3
7 Comments
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
When it converts to pdf, the pdf doesn't support the display: inline or display: inline-block.
More like the PDF conversion library does not understand the styling - which one are you using?
0
 
LVL 14

Author Comment

by:Dzynit
Comment Utility
That I don't know. It's the gravity pdf add-on. When I search for help on the issue, I just keep finding posts that say the inline style is not supported when converting an online form dynamically to a pdf for printing.
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
Then you have to change your markup to something that uses inline styles - possibly even a table.
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 14

Author Comment

by:Dzynit
Comment Utility
It's a gravity form so of course that's not possible either. (maybe the .htm in the link is throwing you off - the site was converted to wordpress a long time ago, but too many pages to 301, so we used a sitewide rewrite to keep the .htm exension.)
0
 
LVL 51

Accepted Solution

by:
Julian Hansen earned 500 total points
Comment Utility
maybe the .htm in the link is throwing you off??
Then it sounds like you are stuck with what Gravity Forms can do.
0
 
LVL 14

Author Comment

by:Dzynit
Comment Utility
yes - that's why I was hoping to get some thoughts on other css for that gf_inline class to still make it work some. But the lawyer got back to me that it was ok to change the line so I could use the 3 column styling that does work. Thanks for trying.
0
 
LVL 51

Expert Comment

by:Julian Hansen
Comment Utility
No problem - good luck.
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
htacces issue 2 37
Box Model and Styling 12 19
Urgent Help with HTML CSS Positioning 9 20
Text in block not displaying properly 2 11
Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now