Solved

Force inline or simulate using css on a pdf

Posted on 2016-10-13
7
97 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 57

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 57

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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 57

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 57

Expert Comment

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

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
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.
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

724 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