function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
How to remove the extra blank page(last) while creating a PDF using renderAs attr in Visualforce?Please reply...
hi,
this may be occuring due to <div style="page-break-after:always;"> if you are using that in your code.
if that is the case, try using the following code. else please share your code.
<apex:page Controller="A" renderAs="pdf"> <apex:repeat value="{!count}" var="v"> <div style="page-break-inside:avoid;height:200px;width:300px;border:solid red 1px;"> <!-- your content here --> </div> </apex:repeat> </apex:page>
hi,
this may be occuring due to <div style="page-break-after:always;"> if you are using that in your code.
if that is the case, try using the following code. else please share your code.