• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

DelphiPDF

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

llPDFLib,TPDFDocument

 2016开始开源。

procedure TForm2.Button1Click(Sender: TObject);
var
 lPdf   : TPdfDocument;
 lPage  : TPdfPage;
begin
  lPdf := TPdfDocument.Create;
  try
    lPdf.Info.Author        := 'Tester';
    lPdf.Info.CreationDate  := Now;
    lPdf.Info.Creator       := 'Tester';
    lPdf.DefaultPaperSize   := psA4;
    lPage := lPDF.AddPage;
    lPDF.Canvas.SetFont('宋体',10.0,[]);
    lPDF.Canvas.SetLeading(lPDF.Canvas.Page.FontSize);
    lPDF.Canvas.SetLineWidth(0.1);

    lPdf.Canvas.BeginText;
    lPdf.Canvas.TextOut( 300, 700,  'This is some text.');
    lpdf.Canvas.TextOut(10,200,'你好');
    lpdf.Canvas.TextOutW(10,300,'你好');
    lPdf.Canvas.EndText;
    lPdf.SaveToFile('test.pdf');
  finally
    lPdf.Free;
  end;

end;
View Code

 

llPDFlib3.6

llPDFlib5.2

V6.4.0.1389

http://www.sybrex.com/products/development/

http://www.sybrex.com/products/development/llpdflib/download.php

 合作伙伴有trichview

SynPdf

1.18

http://blog.synopse.info/category/Open-Source-Projects/Synopse-PDF-engine

HotPDF,VisPDFLib

10.1,收费的

http://www.loslab.com/HotPDF.html


10/19/2015
llPDFLib Releases Its Version 6.0
Delphi library for creating PDF documents on the fly was released.
Whats new:
JBIG2 Compression for b/w images
Digital signatures
Some changes in engine

 

 

 PDFCreator

http://www.pdfforge.org/

 

eDocEngine(gtPDFEngine)

gtPDFEngine,eDocEngine VCL 5.0.0.81,2016.8.3

PDFtoolkit VCL  打印和阅读

TgtPDFDocument, TgtPDFOutlineViewer, TgtPDFPrinter, TgtPDFSearchPanel, TgtPDFViewer

http://www.gnostice.com/eDocEngine%5FVCL.asp

http://www.gnostice.com/nl_article.asp?id=83&t=How_To_Convert_Image_Files_To_PDF_Using_eDocEngine_VCL

http://www.gnostice.com/nl_article.asp?id=213&t=How_To_Convert_XML_To_PDF_Using_Delphi

https://www.gnostice.com/nl_article.asp?id=244&t=Export_From_TRichView_and_ScaleRichView_To_PDF_And_Other_Formats

https://www.gnostice.com/nl_article.asp?id=126&t=Exporting_TRichView_(_RVF)_Files_to_PDF_Using_eDocEngine_VCL

 印度Gnostice制造

procedure TForm1.Button1Click(Sender: TObject);
begin
  if OpenDialog1.Execute() then begin
    Edit1.Text := OpenDialog1.FileName;
    SRichViewEdit1.Clear;
    SRichViewEdit1.RichViewEdit.LoadRTF(Edit1.Text);
    SRichViewEdit1.Format;
  end;
end;

procedure TForm1.Button2Click(Sender: TObject);
begin
  gtPDFEngine1.FileName := OpenDialog1.FileName + '.pdf';
  gtScaleRichViewInterface1.RenderDocument(SRichViewEdit1);
end;

 

html转pdf

HtmlViewer1,gtHtmlViewInterface1,gtPDFEngine1;3个控件

  HtmlViewer1.LoadFromFile('test.html');
  gtHtmlViewInterface1.Engine := gtPDFEngine1;
  gtPDFEngine1.Preferences.ShowSetupDialog := False;
  gtPDFEngine1.Preferences.OpenAfterCreate := False;
  gtPDFEngine1.FileName := 'test.pdf';
  gtHtmlViewInterface1.RenderDocument(HtmlViewer1);

ThtmlViewer

 http://www.pbear.com/


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
【转】判断点在多边形内(matlab)发布时间:2022-07-18
下一篇:
Delphi东京版FireDAC连接MSSQL2000提示对象名'SYS.DATABASES'无效发布时间:2022-07-18
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap