[Solved] Salesforce Visualforce PDF error on renderAs =’PDF’

NZ Dev Asks: Salesforce Visualforce PDF error on renderAs =’PDF’
Repost due to delete from other post. This question will have the answer shortly. Hopefully this does not get deleted. Annoying when trying to add value to the community and people delete the post. I am a noob, but seriously.


I received this error yesterday and isolated right down to a height tag in my CSS class. This time (2nd) I have found it is my “min-height” tag in one of my css classes has caused 2 issues for me.

removing them fixed the issue.

I suspect these are not the route cause.

I wish Salesforce would finally get render as PDF working without so much trouble.

I will update if I find a real solution

Here are the 2 css classes respectively:

Code:
.pdf_data-table div{
    height:50px; //REMOVE THIS LINE AND EVERYTHING WORKS
    overflow: hidden;
}
.pdf_pageheader{
    font-family:Helvetica,Arial,sans-serif;
    table-layout: fixed;
    padding: 5px;
    color:white;
    text-align: center;
    border: none;
    min-height:87px; //REMOVE THIS LINE AND EVERYTHING WORKS
    width:inherit;
    overflow: auto;
    background:{!$Setup.Variables__c.Color__c};
}

Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.