I have tested the provided file using the qt-plugin 5.14.2 on Ubuntu-20.04 with the net5.0 environment, and I was able to successfully generate a PDF file with a progress bar. Please follow the steps below to troubleshoot the issue:
1. Ensure that the plugins directory and the output directory have the necessary permissions. You can use the chmod command to change the permissions:
- Code: Select all
chmod -R 777 /path/to/plugins
chmod -R 777 /path/to/output/directory
Replace /path/to/plugins and /path/to/output/directory with the actual paths to your plugins directory and output directory, respectively.
2. Use the cd command to navigate to the plugins directory of your new version of Qt.
3. Run the following command, replacing "output.pdf" with the path where you want to save the generated file in your code:
- Code: Select all
echo "<p>test text</p>" | ./Html2Pdf "" "output.pdf" 800 600 0 0 0 0 1
If you receive a message like ‘xxx not found’, it indicates that some dependencies are missing. Please install the corresponding dependencies first.
Please share the output or any error messages you receive when running the above command, so we can further investigate the issue.
Thank you for your assistance and cooperation.
Sincerely,
Doris
E-iceblue support team