Comments (6)
I read somewhere that you need to use file:// for the links, try that. If that doesn't work then try the native library and report the issue there, since this project here is just a wrapper.
from wkhtmltopdf-dotnet.
There's a setting called BlockLocalFileAccess which is probably the cause of this.
from wkhtmltopdf-dotnet.
I tried to set the BlockLocalFileAccess to false and still the applied styles is not showing in the PDF.
Do you think there's a problem with it?
from wkhtmltopdf-dotnet.
Looks correct. What does your stylesheet reference look like? Maybe test it using the native wkhtmltopdf tool first to see if it works there.
from wkhtmltopdf-dotnet.
Here's my stylesheet look like.
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.css" />
<link rel="stylesheet" href="C:/Users/User/Downloads/bootstrap-5.3.2-dist/bootstrap-5.3.2-dist/css/bootstrap.css" />
On top of that was an internal style of bootstrap in hope that It will work.
I tested everything but the applied styles is not reflected to the PDF.
from wkhtmltopdf-dotnet.
Okay thank you for your help.
from wkhtmltopdf-dotnet.
Related Issues (20)
- Reporting a vulnerability HOT 1
- In Linux CentOS 7, there was an error: Unable to load native library. The platform may be missing native dependencies (libjpeg62, etc). Or the current platform is not supported. HOT 3
- Memory overflow HOT 2
- The wkhtmltopdf project that is used, is no longer maintained HOT 3
- Display flex is not working HOT 1
- Unable to load native library - Windows 10/11 HOT 16
- How to directly pass parameters to wkhtmltopdf without using objects HOT 1
- You can only download the pdf once HOT 2
- Unable to load native library on .NET8 HOT 29
- n/a
- GlobalSettings not respected on debian 11 HOT 3
- With Multiple requests fails HOT 15
- Not working on Azure Web App 32 bits HOT 7
- add cover command HOT 2
- PdfTools.GetConversionResult doesn't frees memory HOT 3
- HTML字符串转换为PDF报错System.ExecutionEngineException HOT 1
- 将HTML字符串转换为PDF文件,抛出异常System.ExecutionEngineException(重复,需要删除) HOT 2
- Calling in. net8 webapi failed to free memory HOT 5
- Linux alpine HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wkhtmltopdf-dotnet.