Skip to content
This repository has been archived by the owner on Dec 14, 2022. It is now read-only.

Added DPI parameter to ConverterOptions #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion Wkhtmltopdf.NetCore/Implementation/ConvertOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,17 @@ public class ConvertOptions : IConvertOptions
{
public ConvertOptions()
{
this.PageMargins = new Margins();
this.PageMargins = new Margins();
this.DPI = 96;
}

/// <summary>
/// Change the dpi explicitly
/// </summary>
/// <remarks>Default value is 96</remarks>
[OptionFlag("-d")]
public int? DPI { get; set; }

/// <summary>
/// Sets the page size.
/// </summary>
Expand Down