This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Auto filled data in the web page, does not show in pdf

nikrawat123 wrote on 2013-10-09:
Hi PdfCrowd team,

I am filling some data in the form opened in the web browser with the c# code , but when I use pdfcrowd object to convert the web page to pdf, only the defauld page get converted to pdf, my filled data ( including graph formed with my data) not converting to pdf.

is there way to get the printscreen type thing with pdfCrown??

Please do help
support wrote on 2013-10-09:

Let's assume that the URL of your form is

and it renders this HTML:
<form method="POST" action="/form.aspx">
  <input type="text" name="var1" value="default" />
  <input type="text" name="var2" value="default" />
  <input type="submit" value="Create PDF" />

Now, if you edit the form in the browser and then call our API with "http://your.domain/form" then the PDF will contain the default form values as there is no way how the API could know about the changes made in the browser.

The form.aspx handler should be implemented as follows. If it gets a GET request then it will render the form with the values specified in the URL. For example

will render this:
<form method="POST" action="/form.aspx">
  <input type="text" name="var1" value="value1" />
  <input type="text" name="var2" value="value2" />
  <input type="submit" value="Create PDF" />

If it is a POST then it will construct the URL from the submitted form data and will pass this URL to the API:
client.convertURI("http://your.domain/form.aspx?var1=value1&var2=value2", outStream);

Hope this helps.
nikrawat123 wrote on 2013-10-09:
No. it cant help me.

I mentioned that i am not passing any value to web page, actually i am finding textbox through javascript on the page and filling the text box. the clicking the button available on web page , the some data produced on the web page including some bar graph.

Now I want to print the whole data( like printscreen ) to the pdf using your pdfcroud.

Hopes you understand the issue.
support wrote on 2013-10-10:
If you can send me a link to your page, I will look into what can be done about it.
nikrawat123 wrote on 2013-10-10:
support wrote on 2013-10-10:
Unfortunately, Pdfcrowd is not able to handle what you are requesting for this page.