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
Solved

Force inline or simulate using css on a pdf

Posted on 2016-10-13
7
72 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 55

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 55

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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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 55

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 55

Expert Comment

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

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
This article discusses four methods for overlaying images in a container on a web page
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

856 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