Solved

Force inline or simulate using css on a pdf

Posted on 2016-10-13
7
56 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 52

Expert Comment

by:Julian Hansen
ID: 41842530
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
ID: 41842539
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 52

Expert Comment

by:Julian Hansen
ID: 41842554
Then you have to change your markup to something that uses inline styles - possibly even a table.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 14

Author Comment

by:Dzynit
ID: 41842577
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 52

Accepted Solution

by:
Julian Hansen earned 500 total points
ID: 41842647
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
ID: 41842707
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 52

Expert Comment

by:Julian Hansen
ID: 41842714
No problem - good luck.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
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.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

912 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

22 Experts available now in Live!

Get 1:1 Help Now