我使用 Rotativa.ActionAsPdf 将 View 转换为 Pdf 效果很好,但是问题是如何从右到左更改文本方向?
这是我的代码:
public ActionResult ExportPDF(ReportsModel RM)
{
string id = Session["Pat_id"].ToString();
string subPath = "~/Attachment/" + id;
string link;
bool exists = System.IO.Directory.Exists(Server.MapPath(subPath));
if (!exists)
System.IO.Directory.CreateDirectory(Server.MapPath(subPath));
return new Rotativa.ActionAsPdf("PhysicalExaminationSummaryToPDF", new { id = id })
{
FileName = "PhysicalExaminationSummary.pdf",
PageSize = Rotativa.Options.Size.Letter,
PageMargins = { Left = 0, Right = 0 }
};
}