Comments (2)
I am unable to reproduce the issue.
Using 1.0.3 with the following code, I get a grayscale document (and if I use DocumentColorMode.Color instead, I get a color document):
HtmlToPdfDocument document = new HtmlToPdfDocument
{
GlobalSettings =
{
ColorMode = GlobalSettings.DocumentColorMode.Grayscale
},
Objects =
{
new ObjectSettings { PageUrl = "www.google.com" }
}
};
IPechkin sc2 = Factory.Create();
var buf = sc2.Convert(document);
In the code, the values are reversed (using 'Color' sends 'grayscale' to wkhtmltopdf and vice-versa) but that is because there is a bug in the bundled version of wkhtmltopdf (see wkhtmltopdf/wkhtmltopdf#1757)
from tuespechkin.
I see. Thanks!
from tuespechkin.
Related Issues (20)
- Crashing when second request comes in/ hanging randonmly HOT 1
- SVG text with rounded stroke HOT 3
- Type 'Win32EmbeddedDeployment' is not defined HOT 2
- Tuespechkin generating blank PDF
- IIS wkhtmltox.dll_unload error HOT 2
- Tuespechkin takes a long time to respond, and returns null HOT 2
- TOC produces blank page on second conversion within lifecycle
- Qt: Could not initialize OLE (error 80010106) HOT 2
- System.DllNotFoundException - Unable to load DLL 'wkhtmltox.dll': Access is denied HOT 6
- Can I generate same pdf page height with the HTML page height?
- Could we directly send html content to head/foot, not a html page?
- Tagged Content Failed HOT 1
- Migrate Net Core
- Header ends up outside paper HOT 1
- First time works fine, second request nothing happen HOT 1
- Error in MVC solutions using NuGet package
- Border thickness issue for all elements
- PDF Margin being ignored
- Lib causing 2 versions of razor to happen
- Canvas is not converted to image in pdf
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 tuespechkin.