You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-10Lines changed: 14 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,8 @@ TuesPechkin is a .NET Wrapper for the [wkhtmltopdf](https://github.com/wkhtmltop
8
8
-[Azure Websites does not currently support the use of wkhtmltopdf.](http://social.msdn.microsoft.com/Forums/windowsazure/en-US/eb48e701-8c0b-4be3-b694-2e11cc6ff2e1/wkhtmltopdf-in-windows-azure?forum=windowsazurewebsitespreview)
9
9
- It is not tested with any operating systems besides Windows.
10
10
-[It is available as a *NuGet package* for your convenience.](https://www.nuget.org/packages/TuesPechkin/)
11
-
- It is built and tested around wkhtmltopdf 0.11.0, 0.12.0, and 0.12.1.
11
+
- It is built and tested around wkhtmltopdf 0.12.2.
12
+
- Even if you use the IIS-compatible method documented below, you may only use one converter/toolset instance per application pool/process. A workaround is being researched for a future version.
12
13
13
14
### wkhtmltox.dll
14
15
The wkhtmltox.dll file and any dependencies it might have (for older versions, 0.11.0-) are not included in the TuesPechkin NuGet package; however, you can bring your own copy of the library or download one of the following NuGet packages that contain the library:
@@ -29,7 +30,7 @@ For 2.0.0 I am wanting to use the 'git flow' style of branching/merging/releasin
29
30
30
31
### 1. Choose a deployment
31
32
32
-
TuesPechkin exposes an 'IDeployment' interface to represent the folder where wkhtmltox.dll resides. There exists a `StaticDeployment` implementation that accepts a string path, and there exists an abstract `EmbeddedDeployment` class that can be implemented to automatically deploy the wkhtmltopdf dll(s) wherever you need them.
33
+
TuesPechkin exposes an 'IDeployment' interface to represent the folder where wkhtmltox.dll resides. There exists a `StaticDeployment` implementation that accepts a string path, a `TempFolderDeployment` implementation that generates an application-scoped folder path under the `%Temp%` folder, and an abstract `EmbeddedDeployment` class that can be implemented to automatically deploy the wkhtmltopdf dll(s) wherever you need them.
33
34
34
35
### 2. Choose a toolset
35
36
@@ -99,7 +100,8 @@ var document = new HtmlToPdfDocument
99
100
IConverterconverter=
100
101
newStandardConverter(
101
102
newPdfToolset(
102
-
newStaticDeployment(DLL_FOLDER_PATH)));
103
+
newWin32EmbeddedDeployment(
104
+
newTempFolderDeployment())));
103
105
104
106
byte[] result=converter.convert(document);
105
107
```
@@ -109,7 +111,8 @@ byte[] result = converter.convert(document);
109
111
IConverterconverter=
110
112
newThreadSafeConverter(
111
113
newPdfToolset(
112
-
newStaticDeployment(DLL_FOLDER_PATH)));
114
+
newWin32EmbeddedDeployment(
115
+
newTempFolderDeployment())));
113
116
114
117
// Keep the converter somewhere static, or as a singleton instance!
115
118
@@ -121,20 +124,21 @@ byte[] result = converter.convert(document);
121
124
IConverterconverter=
122
125
newThreadSafeConverter(
123
126
newRemotingToolset<PdfToolset>(
124
-
newStaticDeployment(DLL_FOLDER_PATH)));
127
+
newWin32EmbeddedDeployment(
128
+
newTempFolderDeployment())));
125
129
126
130
// Keep the converter somewhere static, or as a singleton instance!
127
131
128
132
byte[] result=converter.convert(document);
129
133
```
130
134
131
-
### Use the embedded library from the TuesPechkin.Wkhtmltox.Win32 NuGet package.
135
+
### Use the embedded library from the TuesPechkin.Wkhtmltox.Win64 NuGet package instead.
0 commit comments