function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vlad_BLvlad_BL 

PDF page rendering "calendar" issue

Hello everybody,

 

I have some problems with PDF rendering, I created empty page with just renderAs="pdf" and of course sidebar="false".

PDF page itself is rendered but instead of empty page it shows me "calendar"

 

 

JanuaryFebruaryMarchAprilMayJuneJulyAugustSeptemberOctoberNovemberDecember
2009201020112012201320142015
MonTueWedThuFriSatSun


Today

 

 

I will really appreciate if someone can tell me what causes this behavior, because it already drives me crazy :smileysad: 

Best Answer chosen by Admin (Salesforce Developers) 
vlad_BLvlad_BL

Thanks, Pradeep for your reply.

 

Indeed I found the answer: this strange behavior is caused by <apex:form>, but yet I have no idea why.

 

All Answers

Pradeep_NavatarPradeep_Navatar

Try using the following sample code:

 

<apex:page controller="Pdfgeneration"  renderAs="pdf" sidebar="false" standardStylesheets="false">

<apex:form>

               My visual force page

</apex:form>

</apex:page>

vlad_BLvlad_BL

Thanks, Pradeep for your reply.

 

Indeed I found the answer: this strange behavior is caused by <apex:form>, but yet I have no idea why.

 

This was selected as the best answer