Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Sun Jun 07, 2020 5:15 am

Hello,

How to display the value of input in the pdf?

example:
Code: Select all
<input id="lastname" runat="server" style="border-style: solid;
                        border-color: inherit; border-width: 0px; background-color: transparent; font-size: small;
                        text-align: center; width: 280px; font-weight: 700;"/>

I am getting no display when I use free new plugin.

Thanks!

jdispo
 
Posts: 19
Joined: Wed Jul 03, 2019 7:21 am
Location: Philippines

Mon Jun 08, 2020 3:26 am

Hello,

Thanks for your inquiry.
According to the source code you provided, I created an html document and found that it displays nothing after opening it in the browser, as shown below. So when using the plugin method to convert it to PDF, you will get a blank page.
Open_in_browser.png

You can set a default value for the <input> tag through the value attribute, so that the generated PDF document contains content, like the following code.
Code: Select all
      <input id="lastname" value="default value" runat="server" style="border-style: solid;border-color: inherit; border-width: 0px; background-color: transparent; font-size: small;text-align: center; width: 280px; font-weight: 700;" />


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.PDF

cron