Line-height of paragraphs in post_content text

18 April, 2023 04:13:25
lyddit72
Topics: 1
Messages: 4
Hi there, I use your plugin to print blog posts.

Here:
https://novabhre.novalaw.unl.pt/key-findings-first-national-survey-portugal/
at the bottom of the page there is a link "Download as PDF" which creates the PDF file.

Everything works quite well. Unfortunately, I can't change the line-height of the paragraphs within the text created with [e2pdf-wp key="post_content"]. Is there a way to format this text, e.g. via CSS?

Best,

Jens


18 April, 2023 04:37:34
E2Pdf
Support
Topics: 7
Messages: 3335
Hi,

Do you need the space between "p" tags?

If so, try to add to the CSS section of the Main HTML Object CSS (Screenshot 1):

p {
margin-bottom: 20px;
}

Or do you have issues setting "Line-Height" on the element and it doesn't change? (Screenshot 2)
We would really appreciate your feedback at WordPress.org!
18 April, 2023 06:32:39
lyddit72
Topics: 1
Messages: 4
Thanks a lot. I was now able to solve the problem with the line spacing quite easily.

But unfortunately I can't manage to make the contents of the right column (Latest Posts, Categories) invisible. I have tried using CSS:

.widget_block{display:none}
.wpb_column.vc_column_container.vc_col-sm-4.vc_col-has-fill {display:none}

But unfortunately that didn't work. Do you have a better suggestion? Maybe with "Preg Filters"?
18 April, 2023 06:46:55
E2Pdf
Support
Topics: 7
Messages: 3335
Unfortunately yes, E2Pdf doesn't support yet "display: none;" and supports just one level CSS as:

.class {
}

tag {
}

We see that you have a custom class added to the "right" panel. Can you please try to update your shortcode to:

[e2pdf-format-output remove_by_class="vc_custom_1656067368479"]
[e2pdf-wp key="post_content"]
[/e2pdf-format-output]

Let us know please if it will not work as expected so we can offer you some other solution as this is "test" functionality and it is not yet documented.
We would really appreciate your feedback at WordPress.org!
18 April, 2023 06:57:56
lyddit72
Topics: 1
Messages: 4
Thank you so much for your quick answer! Unfortunately your suggestion does not work. My code is actually:

<h1><span style="color: inherit; font-family: 'Playfair Display Regular'; letter-spacing: 0px;"><br>[e2pdf-wp key="post_title"]</span></h1>
<br>
<h4>[e2pdf-format-date format="F j, Y"]x[/e2pdf-format-date]</h4>
[e2pdf-format-output remove_by_class="vc_custom_1656067368479"]
[e2pdf-wp key="post_content"]
[/e2pd-format-output]

I realised that at the bottom of the content there is now the "tag": "[/e2pd-format-output]" still visible. Perhaps there is a little mistake in the code?
18 April, 2023 09:18:31
E2Pdf
Support
Topics: 7
Messages: 3335
Sorry, our fault.

It was copied incorrect closing tag e2pd-format instead of e2pdf-format. The correct shortcode is:

[e2pdf-format-output remove_by_class="vc_custom_1656067368479"]
[e2pdf-wp key="post_content"]
[/e2pdf-format-output]
We would really appreciate your feedback at WordPress.org!
20 April, 2023 03:58:56
lyddit72
Topics: 1
Messages: 4
Now everything works as it should. To thank you for this, I have written a review for you at Wordpress.org.