小编pan*_*rma的帖子

在NicEdit WYSIWYG中插入HTML

如何在NicEdit创建的div中的游标位置插入文本/代码?

我试过阅读文档并创建自己的插件,但我想让它在没有工具栏的情况下工作(模态窗口)

javascript nicedit

5
推荐指数
1
解决办法
8279
查看次数

如何向生成的PDF添加页眉和页脚

我正在使用Gmanny的Pechkin Pdf库,它运行得很好.这是我的代码:

  private void CreatePdfPechkin(string htmlString, string fileName)
        {
            //Transform the HTML into PDF
            var pechkin = Factory.Create(new GlobalConfig()
            .SetMargins(new Margins(100, 50, 100, 100))
              .SetDocumentTitle("Test document")
              .SetPaperSize(PaperKind.A4)
               .SetCopyCount(1)
                           //.SetPaperOrientation(true)
                          // .SetOutputFile("F:/Personal/test.pdf")

             );
            ObjectConfig oc = new ObjectConfig();
            oc.Footer.SetLeftText("[page]");
            oc.Footer.SetTexts("[page]", "[date]", "[time]");
            oc.Header.SetCenterText("TEST HEADER TEST1");
            oc.Header.SetHtmlContent("<h1>TEST HEADER V2</h1>");
            oc.SetAllowLocalContent(true);
           //// create converter
            //IPechkin ipechkin = new SynchronizedPechkin(pechkin);

            // set it up using fluent notation
            var pdf = pechkin.Convert(new ObjectConfig()
                        .SetLoadImages(true).SetZoomFactor(1.5)
                        .SetPrintBackground(true)
                        .SetScreenMediaType(true)
                        .SetCreateExternalLinks(true), htmlString);

           //Return the PDF file
            Response.Clear();
            Response.ClearContent();
            Response.ClearHeaders(); …
Run Code Online (Sandbox Code Playgroud)

.net c# pdf-generation pechkin tuespechkin

3
推荐指数
1
解决办法
5123
查看次数

标签 统计

.net ×1

c# ×1

javascript ×1

nicedit ×1

pdf-generation ×1

pechkin ×1

tuespechkin ×1