|
Rank: Newbie Groups: Member
Joined: 7/19/2011 Posts: 7
|
Hi,
I have pages which has hidden fields. These fields are not visible on the page but when i export the page to PDF the hidden fields also gets exported. What should i do to make sure what i see on the page only gets exported. Nothing extra should come up on the exported PDF.
Thanks Sumeet
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The converter should render everything exactly the same way you see in a browser. So it should not render any hidden field at all. If you see those fields, then most likely somewhere in your script you turned them on. If your continue seeing those fields, try to isolate the problem into a test HTML file and send it to us. We will be happy to take a look.
Thanks
|
|
Rank: Newbie Groups: Member
Joined: 7/19/2011 Posts: 7
|
Hi,
thanks for the prompt reply. This is the scenario with our application.
1. we have a page. 2. there are many fields on that. 3. based on the condition if the data is present on a field or not we are hiding that. 4. we are using js to hide the fields after the page load. 5. the script is written at the end of the page.
So we are not clear that when this page loads and we click on the PDF button to export the page to pdf whether the js is being triggered or not. Is the the way it should work or the JS should be handled by the PDF export code itself and should be called on the page requested to be converted to PDF.
Thanks Sumeet
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
You can do it either way. It doesn't matter to us. The PDF converter does everything the same way as your browser does --- you can pretty much think the converter as a browser except that it renders to PDF instead onto your screen. So usually when the output is wrong, it's because you have a bug somewhere in your page or code.
Thanks
|
|