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.

Tue Jan 21, 2025 10:25 am

Hi,

Thank you for your reply.
It should not be an issue with the path, as I am using a relative path. Here is my complete code.
Code: Select all
ConvertHtmlStringToPDF();
void ConvertHtmlStringToPDF()
{
    string htmlString = File.ReadAllText(@"Narender4218.html");
    string outputFile = "ToPDF.pdf";
    string pluginPath = "plugins";
    //plugins
    HtmlConverter.PluginPath = pluginPath;

    HtmlConverter.Convert(htmlString,

    outputFile,
    //enable javascript
    true,
    //load timeout
    10 * 1000,
    //page size
    new SizeF(612, 792),
    //page margins
    new Spire.Pdf.Graphics.PdfMargins(0),
    //load from content type
    LoadHtmlType.SourceCode
    );
}

Could you please try running the command "sudo xvfb-run dotnet HtmlProgressbarTest.dll" again to check if it is related to dotnet permissions? If the issue persists, please use a simple html file, rename it to "Narender4218.html", and test again to see if it is related to the file. Thank you very much for your patience and assistance.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 460
Joined: Mon Nov 07, 2022 8:10 am

Thu Jan 23, 2025 11:09 am

Hi Team,

We have updated given code with given plugins with the given plugins we are unable to convert html to pdf basic functionality the echo command is only working but when we use the qt plugins version 5.9.8, which is unable to convert the "progress" effect ,Please share us the entire sample project for progress bar like sample docker project with source code and etc so that we will compile the code in test env and run .dll file check the conversion of progress bar , we are still moving to and fro , Due this we are lossing our bussiness in the market ,Please help us to solve this issue

ceipalAdmin
 
Posts: 92
Joined: Mon Apr 22, 2019 6:31 am

Fri Jan 24, 2025 9:45 am

Hello,

Thank you for your reply.
Based on our developers' analysis of your situation, the reason why the file cannot be output might be due to the use of relative paths. The developers suggest replacing the relative paths in the project with absolute paths (such as directories under /home), and granting permissions to the output directory. It is recommended that after adjusting the paths in the project, compile it into a dll and test it in the previous way. If there are still problems, the developers will investigate the usage method of Docker. Thank you for your assistance.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 460
Joined: Mon Nov 07, 2022 8:10 am

Fri Jan 24, 2025 11:10 am

Hi Team,

Tired all that scenerios but no luck , Please provide as sample project.

ceipalAdmin
 
Posts: 92
Joined: Mon Apr 22, 2019 6:31 am

Sat Jan 25, 2025 4:58 pm

ceipalAdmin wrote:Hi Team,

Tired all that scenerios but no luck , Please provide as sample project.

I agree, it's better to see once

thiefcrazy98
 
Posts: 4
Joined: Sat Jan 25, 2025 4:52 pm

Sun Jan 26, 2025 10:03 am

Hi,

Thank you for your reply.
We will investigate the method for creating a Docker based on the Ubuntu base image as soon as possible, and we will inform you promptly once we have any progress.

Sincerely,
Doris
E-iceblue support team
User avatar

Doris.Liu
 
Posts: 460
Joined: Mon Nov 07, 2022 8:10 am

Return to Spire.PDF

cron