TutorialShow Gravity PDF in raw HTML

Do you want to inspect the raw html output of your Gravity PDF? With this simple url argument you can do that.

Add ?html=1 to the PDF url

It’s quite easy. First open a PDF inside your browser. It will have an url like this:

https://gravitywp.com/pdf/5e3ebbb1cb8e3/18823/

Now add behind this url the arguments: ?html=1. This should look like this:

https://gravitywp.com/pdf/5e3ebbb1cb8e3/18823/?html=1

The PDF opens now without processing it to the PDF itself. This makes it way easier to inspect the HTML and styles used inside the PDF. You can only do this when you have edit rights (as an administrator you usually do) in Gravity PDF.

More about styling PDF’s

For generating PDF’s the mPDF library is used. There are some limitations and differences between writing HTML and CSS for PDF’s compared with webpages.

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close