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

PDF problem

       I want to display contact details in PDF format. I write a page and its work fine.
I am using custom button in Contact detail page for genrate this PDF
      Custom Button Properties:
         Behavior               - Display in new window
         Display Type        - Detail Page Button 
         Button or Link       - URL
         Show Scrollbars  - True  
         Resizable             - True
My problem is when I click PDF button in Contact detail page, one new blank window is opened along with PDF
  How to avoid it..
I think I made a mistake in button properties...
    Any one guide me..

Probably your username is setup to work in developer mode.

Turn it off and then the page is loaded normally which in fact will be a PDF document. Then it should work fine.


Thanks for ur reply Sam

             I already turned off my development mode.. I think I made a mistake in Custom button property..

If u work in PDF generation please send property details of custom button which u get a PDF..

            Thans once again for ur reply..

LabelPDFObject NameAccount
BehaviorDisplay in new windowDisplay TypeDetail Page Button
Content SourceVisualforce Page  
Height (in pixels)600Visualforce PagePDF_Account
Width (in pixels)  Show Address BarNot Checked
Window PositionNo PreferenceShow ScrollbarsChecked
ResizeableCheckedShow ToolbarsNot Checked
  Show Menu BarNot Checked
  Show Status BarNot Checked


  Please check the above settings, I am using as it is, it is working fine for me.

Thanks for ur reply Srini..


         Still I am getting blank page... When I hit the button I need the page will be retained and PDF is opened..

How it is possible..


 For me its opening in another page only, there is no problem.
 Check your settings once again.

Thanks for ur reply..

         For me also its opening in another window.. But my problem is one blank white window also opened extra.. How to avoid this extra window...

           When I hit the button PDF opened in new window and one blank page also opened.... Are u get any blank window..