Comments (4)
You could try using CustomWkHtmlPageArgs
to set the page width and height
var settings = new PdfConversionSettings
{
//...
CustomWkHtmlPageArgs = " --page-width 88mm --page-height 56mm";
};
Custom args mentioned here #6 (comment)
from shark.pdfconvert.
Heh, Itβs been one of those days. Yes, I merged that PR and published to Nuget earlier today. 1.0.4.
from shark.pdfconvert.
@defra91 CustomWkHtmlPageArgs
should do the trick for you, as @rossdonald suggested. If not, please re-open the issue and we can come up with a better work around or bug fix for you. Thanks!
from shark.pdfconvert.
Well PageWidth and PageHeight were fixed just recently (here ae1a2e1) so they should work now.
You shouldn't have to use the CustomArgs
from shark.pdfconvert.
Related Issues (13)
- Code Coverage for Testing All Options HOT 1
- IOException in the library HOT 2
- Legal OSS compliance question HOT 1
- Is there a global settings for PdfConversionSettings.PdfToolPath? HOT 3
- Throws an error on linux, amount not finding wkhtmltopdf.exe. HOT 3
- not converting arabic language HOT 1
- Margin Issue
- Header and footer not showing with cover HOT 2
- Handle multiple pages HOT 3
- Problem with Zoom and Page Size settings HOT 2
- Custom header HOT 2
- pageto, page, etc. keywords are not being replaced HOT 1
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 shark.pdfconvert.