【实例简介】
C# HTML转成PDF 文件
客户端,打开点击按钮,然后等待,然后去bin目录中去找寻生成的pdf即可
【实例截图】
【核心代码】
htmlToPdf
└── htmlToPdf
└── WpfApplication
├── WpfApplication
│ ├── App.xaml
│ ├── App.xaml.cs
│ ├── bin
│ │ └── Debug
│ │ ├── itextsharp.dll
│ │ ├── new.pdf
│ │ ├── qqnew.pdf
│ │ ├── resoure
│ │ │ ├── HTMLPage1.htm
│ │ │ ├── itextsharp.dll
│ │ │ ├── libeay32.dll
│ │ │ ├── libgcc_s_dw2-1.dll
│ │ │ ├── qcare.html
│ │ │ ├── s.html
│ │ │ ├── ssleay32.dll
│ │ │ ├── wkhtmltopdf-0.8.3.exe
│ │ │ └── wkhtmltopdf.exe
│ │ ├── s.html
│ │ ├── wkhtmltopdf-0.8.3.exe
│ │ ├── WpfApplication.exe
│ │ ├── WpfApplication.pdb
│ │ ├── WpfApplication.vshost.exe
│ │ └── WpfApplication.vshost.exe.manifest
│ ├── HTML2PDF.cs
│ ├── MainWindow.xaml
│ ├── MainWindow.xaml.cs
│ ├── obj
│ │ └── x86
│ │ └── Debug
│ │ ├── App.g.cs
│ │ ├── App.g.i.cs
│ │ ├── DesignTimeResolveAssemblyReferences.cache
│ │ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ │ ├── GenerateResource.read.1.tlog
│ │ ├── GenerateResource.write.1.tlog
│ │ ├── MainWindow.baml
│ │ ├── MainWindow.g.cs
│ │ ├── MainWindow.g.i.cs
│ │ ├── TempPE
│ │ │ └── Properties.Resources.Designer.cs.dll
│ │ ├── WpfApplication_Content.g.cs
│ │ ├── WpfApplication_Content.g.i.cs
│ │ ├── WpfApplication.csproj.FileListAbsolute.txt
│ │ ├── WpfApplication.exe
│ │ ├── WpfApplication.g.resources
│ │ ├── WpfApplication_MarkupCompile.cache
│ │ ├── WpfApplication_MarkupCompile.i.cache
│ │ ├── WpfApplication.pdb
│ │ └── WpfApplication.Properties.Resources.resources
│ ├── Properties
│ │ ├── AssemblyInfo.cs
│ │ ├── Resources.Designer.cs
│ │ ├── Resources.resx
│ │ ├── Settings.Designer.cs
│ │ └── Settings.settings
│ ├── resoure
│ │ ├── HTMLPage1.htm
│ │ ├── itextsharp.dll
│ │ ├── libeay32.dll
│ │ ├── libgcc_s_dw2-1.dll
│ │ ├── qcare.html
│ │ ├── s.html
│ │ ├── ssleay32.dll
│ │ ├── wkhtmltopdf-0.8.3.exe
│ │ └── wkhtmltopdf.exe
│ ├── Service.cs
│ └── WpfApplication.csproj
├── WpfApplication.sln
└── WpfApplication.suo
12 directories, 60 files