我用的是文电通PDF浏览器插件[PDF Reader OCX
http://www.pdfwizard.com/chs/PRODUCT/downgold.asp 可以下载
这里不写着,地址吗?
免费下载,中文资料啊。。
都在这个帖子里
http://www.delphibbs.com/delphibbs/dispq.asp?lid=3496988
你倒把整个帖子看完啊。。最下面第二个回复不有吗,你说是不是你耍我。[
][
]
答案,我在QQ告诉楼主了,没有贴在网上。
我现在贴上,要不你又找不到,怪我了。
unit uMain;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, OleCtrls, PDFREADEROCXLib_TLB;
type
TFrmMain = class(TForm)
PDFReaderOCX1: TPDFReaderOCX;
OD: TOpenDialog;
btnOpen: TButton;
Memo1: TMemo;
procedure btnOpenClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
FrmMain: TFrmMain;
implementation
{$R *.dfm}
procedure TFrmMain.btnOpenClick(Sender: TObject);
var
Fpdf:_DPDFReader;
d:IDispatch;//IPDFReaderInfo;
fpdfInfo:IPDFReaderInfo;
count:integer;
var
pTitle: WideString;
pSubject: WideString;
pAuthor: WideString;
pKeywords: WideString;
pCreator: WideString;
pProducer: WideString;
pCreatedDate: WideString;
pModifiedDate: WideString;
begin
if OD.Execute then
begin
PDFReaderOCX1.OpenFile(od.FileName,'');
PDFReaderOCX1.ControlInterface.GetPageInfoDispatch(d);
fpdfInfo:=d as IPDFReaderInfo;
//转化接口
fpdfInfo.GetPageCount(count);
//这里省略了成功的判断
Caption:=IntToStr(count);
fpdfInfo.GetDocumentInfo(pTitle,pSubject,pAuthor,pKeywords,pCreator,pProducer,pCreatedDate,pModifiedDate);
//Fpdf.GetPageInfoDispatch(fpdfInfo);
Memo1.Lines.Clear;
Memo1.Lines.Add('标题:'+pTitle);
Memo1.Lines.Add('主题:'+pSubject);
Memo1.Lines.Add('作者:'+pAuthor);
end;
end;
end.