- Home
- Forum
- ASP.NET MVC
- Can I use Syncfusion as ASP code (not ASP.net) to convert html to pdf?
Can I use Syncfusion as ASP code (not ASP.net) to convert html to pdf?
Hi, Our systems haven’t gotten to ASP.Net yet, only use ASP. Can SyncFusion engine be called by ASP? If so, do you have document and sample codes like following ASP format?
Set oPDF = CreateObject("SyncFusion.Doc")
oPDF.Page = oPDF.AddPage()
oID = oPDF.AddImageHtml(sHTML)
......
oPDF.Save sFileName
Thanks,
Thank you for verification that Syncfusion doesn’t support the classic
ASP code. In order for our asp code to call the .net object, we need the .net
library has the COM-visible assembly. Does the Syncfusion .Net library has the
COM-visible Assembly?
The Itext7 could convert the html form codes to PDF. I suggest you could try to use Trafoos Itext7 's Html2pdf library to achieve your requirement. Notice:You should firstly read the generated MVC page as html and send to MVC action, then you could use Itext7 's Html2pdf library to convert html form to PDF.
To: Syncfusion Support <[email protected]>
Subject: RE: Syncfusion support community forum 158076, Can I use Syncfusion as ASP code (not ASP.net) to convert html to pdf?, has been updated.
- Our HTML converter internally creates and launches a surrogate process from a temporary folder. So, the converter required read/write and execute permission of the temporary folder. So, please check the temporary folder has read/write/execute permission for the respective user group.
- If we do not explicitly set TempPath in WebKitConverterSettings then the converter will make use of system temporary folder for creating temporary files. So, please make sure the provided temporary folder has the required permission.
- This exception may occurs if the machine blocks (prevents the execution of the process) the temporary surrogate process. If you are using any software/program to block the unknown executables, you can whitelist the temporary surrogate process using two ways.
- You can allow the executables from the particular folder and set the path of the folder as TempPath in WebKitConverterSettings.
- You can allow the executable with name, you can settings any name to process using TempFileName property. (If we set this property, the temporary process will be created with this name)
- Make sure that you are using Syncfusion assemblies and QtBinaries from same version of HTML converter installer or NuGet package.
- Check the Syncfusion.HtmlConverter.Base.dll is blocked or not, if it is blocked please try the conversion after unblock it. Please refer below link for more information.
To: Syncfusion Support <[email protected]>
Subject: RE: Syncfusion support community forum 158076, Can I use Syncfusion as ASP code (not ASP.net) to convert html to pdf?, has been updated.
- The Banner.gif icon at the header is not converted;
- Some of the line alignments are not correct;
- PRINT and CLOSE button on the top right are inactive. But for the html input, both buttons works fine.
|
//Set Enable form
settings.EnableForm = true; |
- 18 Replies
- 4 Participants
- Marked answer
-
YS Yong Su
- Sep 22, 2020 07:30 PM UTC
- Nov 13, 2020 01:37 PM UTC