使用 Syncfusion组件
using
Syncfusion.Pdf;
using
Syncfusion.Pdf.Graphics;
using
Syncfusion.Pdf.Interactive;
using
Syncfusion.HtmlConverter;
using
Syncfusion.Pdf.HtmlTo Pdf;
public
void GeneratePDFEPFullBak5( List < string > arrURL, string FileName, bool OpenInBrowser, string footerText, bool bFooter, bool bPageNumber)
{
//PdfLoadedDocumentLinkAnnotation
string strResult = string.Empty;
//pdf document
PdfDocument pdfDoc = default(PdfDocument);
pdfDoc =
new PdfDocument ();
//Add PDF Document Settings
//set margin
pdfDoc.PageSettings.SetMargins(leftMargin, topMargin,rightMargin, bottomMargin);
//set page orientation
pdfDoc.PageSettings.Orientation =
PdfPageOrientation .Portrait;
//set rotation
pdfDoc.PageSettings.Rotate =
PdfPageRotateAngle .RotateAngle0;
//set width
PdfUnitConvertor convertor = new PdfUnitConvertor();