Cross platform nuget HTML to PDF in ASP.NET Core - asp.net-core-3.1

I'm working on the task to convert HTML to PDF. Our site is hosted on a Linux Docker container.
I tried many NuGet packages, from last week, but could not find a proper solution.
I tried all these packages:
Itextsharp
Select.Htmltopdf
wkhtmltopdf
hiqpdf
Can anyone suggest or show an example for a cross platform HTML to PDF conversion library?
Thanks in advance.

I had the same problem and I used HakanL/WkHtmlToPdf-DotNet which is a wrapper for the wkhtmltopdf tool. The package includes all necessary binaries for running on Windows, Linux, MacOSX and Docker. I tested it on Windows and Linux with .NET 6 and it worked without any problems.

Related

Install Gtk+ on pythonanywhere

I am generating a pdf using weasyprint on pythonanywhere(in django). Weasyprint is successfully installed but it needs other graphic rendering tools to be installed separately. How can I install Gtk+ on pyhtonanywhere?
EDIT: The fonts don't seem to load unless I have Pango. Since I can't have Gtk+ on pythonanywhere, is there anyway to load fonts in weasyprint without having Gtk+ libraries?

How to run VSCode on Centos6

My company is using an old CentOS6 and they wont update it before months (years?). This is totally out of my control and it obviously makes using up to date software a nightmare.
I would like to use Visual Studio Code as a C++ IDE but its intellisense plugin is running with glibc >=2.14 and Centos6 comes with glibc 2.12.
It also needed some more dependencies I managed to recompile and load with LD_LIBRARY_PATH. I tried compiling a new glibc and load it as well but it segfault, as expected.
I used the compiled version of VSCode from the official website.
I tried compiling it myself but it requires to download many files and my virtual machine does not have Internet, I can only transfer files through ftp. I created a local yarn repository, compiled all appropriate version of Yarn, NodeJS but a compiled binary is trying to download electron and I have no idea where to put the file to trick him into thinking it's downloaded already (assuming I could).
There are standalone solutions to run software on old distribution, like AppImage but VSCode is not part of their apps.
Would you have any idea on how to run VSCode on Centos6? Did you ever try to compile VSCode without and Internet Connection?
Currently the only viable solution I see would be to create an AppImage at home.
To run VS Code Server on CentOS 6, I followed the "glibc and libstdc ++ on RHEL / CentOS 6 update" article from here.
Perhaps this option will help you.

Trouble seeing WeBlog package contents in Sitecore

I installed WeBlog package from sitecore marketplace (http://marketplace.sitecore.net/en/Modules/WeBlog.aspx) in my sitecore instance. Initially i had trouble installing package however i retried again deleting weblog.config file. It installed without any issue however when i look into content editor i don't see any WeBlog Modules under Template, System or Layout sections.
Does anyone know why?
Thanks.
Which version of Sitecore are you on? Is the module compatible? Weblog shows that it's compatible with the following versions: CMS 6.2, CMS 6.3, CMS 6.3.1, CMS 6.4, CMS 6.4.1, CMS 6.5.
Assuming you're on a compatible version, I'd check to make sure the layouts and sublayouts that were in the weblog package were actually installed on your instance. Open up the zip file and check out what files should have been installed.
Failing that, have a look at the log files to see if there are any glaring errors.
As a last ditch, you may want to try publishing. It shouldn't really matter in your content editor view, but I view the "publish" feature of Sitecore like the "reboot" feature of Windows.

How to deploy application with QT5

So I have made GUI frontend for latex with QT5 using QT creator. The application works fine, but I'm unable to deploy it. The deploy option in build is grayed out. I have also tried following this guide but I can't even configure my QT to use static linking. I was able to configure the source, but when I try to run mingw32-make sub-src, it says nothing to do here.
I downloaded QT from here using the link Qt 5.0.1 for Windows 32-bit (MinGW 4.7, 823 MB). I have also downloaded microsoft visual studio express for Windows 8 to get tools required for building c++.
I also tried to install mingw32 manually. I have also installed Strawberry perl, because one guide told me to do that, but that did nothing.
I managed to fix this problem. There was one .dll. Reason why I didn't find it earlier was that my application did not need it by itself, but one of libraries I used was dependaple from it. The missing .dll was icuuc49.dll.

Converting server operation system Windows XP to Ubuntu

Previously I had some problem that cannot run a PHP project previously made in Windows XP to Ubuntu server with plain PHP.
If I start working on a new project with Zend Framework (PHP) in Windows XP, does it cause some problem porting to ubuntu environment(Also mongodb in Windows to Ubuntu)?
Problems were different file format system, file privilege, case-sensitive(Ubuntu) or insensitive(Windows) issues.
I believe the Framework will take care of miscellaneous environment differences between those two operating systems.
If not, should I start my project on Ubuntu?
If developing on Ubuntu is the best choice, using FTP is the best way to update code?
What about running Zend console through "zf" commands?
I need some suggestion and advice on Zend Framework Development Environments and Know-Hows.
I'm not genes in zend framework. But I use zend project in both Windows and Linux environment.
File formatting is not problem in both OS. Because php, phtml, ini etc.. file are working in both system.
In linux you should give read permission to web user for your project.