如何在c#中使用abcpdf更改pdf表单字段中的字体样式?
如何使用abcpdf和c#?如何在c#中使用abcpdf更改pdf表单字段中的字体样式?,c#,abcpdf,C#,Abcpdf,如何使用abcpdf和c#? 欢迎来到堆栈溢出。请考虑阅读和更新你所尝试的问题。如果你陷入困境,那么你肯定会在这里找到帮助!非常感谢您简单而准确的回答@c-Helling using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Drawi
欢迎来到堆栈溢出。请考虑阅读和更新你所尝试的问题。如果你陷入困境,那么你肯定会在这里找到帮助!非常感谢您简单而准确的回答@c-Helling
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Drawing;
using System.Text;
using System.Net;
using System.IO;
using WebSupergoo.ABCpdf8;
namespace ABCpdfExamples
{
public partial class test : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// ---- Adds a font reference to the document ----
Doc doc = new Doc();
doc.FontSize = 48;
string theFont = "Times-Roman ";
doc.Font = doc.AddFont(theFont);
doc.AddText(theFont);
theFont = "Helvetica-Bold";
doc.Font = doc.AddFont(theFont);
doc.AddText(theFont);
doc.Save(Server.MapPath("~/Results/Output.pdf"));
doc.Clear();
}
}
}