![]() |
|
Hazır pdf okuma, ekleme, imzalama ve yazdırma projesi (kaynak kod) - Baskı Önizleme +- Delphi Can (https://www.delphican.com) +-- Forum: Delphi (https://www.delphican.com/forumdisplay.php?fid=3) +--- Forum: Eğitim (https://www.delphican.com/forumdisplay.php?fid=19) +---- Forum: Makale (https://www.delphican.com/forumdisplay.php?fid=20) +---- Konu Başlığı: Hazır pdf okuma, ekleme, imzalama ve yazdırma projesi (kaynak kod) (/showthread.php?tid=5340) |
Hazır pdf okuma, ekleme, imzalama ve yazdırma projesi (kaynak kod) - delphicim - 17-10-2020 Merhaba, Pdf üzerinde bir türlü ralı yazdırma yapamamdan dolayı, başkaları da sıkıntı yaşamasın diye, Size Allah rızası için güzel bir kaynak hazırladım. Kullanılan Bileşenler : - OpenDialog - StatusBar - MainMenu - PdfToolkit : https://www.gnostice.com/downloads/pdftoolkit_t_pp.exe Açık kaynaktır. Üzerinde istediğiniz gibi geliştirme yapabilirsiniz. Pas Dosyası :
unit Unit1;
interface
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.ComCtrls, Vcl.Menus,
Vcl.ExtCtrls, gtPDFSearchPanel, gtPDFPrinter, gtPDFOutlineViewer,
gtScrollingPanel, gtPDFViewer, gtPDFClasses, gtCstPDFDoc, gtExPDFDoc,
gtExProPDFDoc, gtPDFDoc, jpeg;
type
TForm1 = class(TForm)
StatusBar1: TStatusBar;
gtPDFDocument1: TgtPDFDocument;
gtPDFViewer1: TgtPDFViewer;
gtPDFOutlineViewer1: TgtPDFOutlineViewer;
gtPDFPrinter1: TgtPDFPrinter;
gtPDFSearchPanel1: TgtPDFSearchPanel;
MainMenu1: TMainMenu;
MenuSecenekleri: TMenuItem;
OpenDialog1: TOpenDialog;
N1: TMenuItem;
Pdf_Cagir_File: TMenuItem;
Pdf_Cagir_Stream: TMenuItem;
Pdf_Imzala: TMenuItem;
Pdf_BaziAyarlar: TMenuItem;
Pdf_ResimEkle: TMenuItem;
Pdf_Yazdir: TMenuItem;
Pdf_Kaydet: TMenuItem;
procedure Pdf_Cagir_FileClick(Sender: TObject);
procedure Pdf_BaziAyarlarClick(Sender: TObject);
procedure Pdf_KaydetClick(Sender: TObject);
procedure Pdf_YazdirClick(Sender: TObject);
procedure Pdf_ImzalaClick(Sender: TObject);
procedure Pdf_ResimEkleClick(Sender: TObject);
procedure Pdf_Cagir_StreamClick(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Pdf_Cagir_FileClick(Sender: TObject);
begin
gtPDFDocument1.Reset; //Belgeyi temizle
StatusBar1.Panels[0].Text:=''; //Sayfa Sayısı
StatusBar1.Panels[1].Text:=''; //Yazdırılacak yazıcı
StatusBar1.Panels[2].Text:=''; //unuttum
Dfm Dosyası : object Form1: TForm1 Left = 0 Top = 0 Caption = 'DelphiCan.com Pdf Okuma / '#304'mzalama / Yazd'#305'rma' ClientHeight = 524 ClientWidth = 937 Color = clBtnFace Font.Charset = DEFAULT_CHARSET Font.Color = clWindowText Font.Height = -11 Font.Name = 'Tahoma' Font.Style = [] Menu = MainMenu1 OldCreateOrder = False Position = poScreenCenter PixelsPerInch = 96 TextHeight = 13 object StatusBar1: TStatusBar Left = 0 Top = 505 Width = 937 Height = 19 Panels = < item Width = 150 end item Width = 150 end item Width = 150 end> end object gtPDFViewer1: TgtPDFViewer Left = 262 Top = 0 Width = 554 Height = 505 Cursor = 1 Align = alClient Color = clGray DockOrientation = doNoOrient ParentColor = False TabOrder = 1 TabStop = True About = 'Gnostice PDFtoolkit (http://www.gnostice.com)' Status = 'PDF Viewer loaded Successfully.' SearchHighlightColor = clGray Version = '5.0.0.838' ViewerMode = vmHand AllowImageCopy = False SelectedRegionColor = clSkyBlue HighlightRegionColor = clYellow HighlightRegionShape = stRectangle BackgroundRendering = False Caching.Enabled = True Caching.DocumentCount = 10 HighlightFormFields = False end object gtPDFOutlineViewer1: TgtPDFOutlineViewer Left = 816 Top = 0 Width = 121 Height = 505 About = 'Gnostice PDFtoolkit (http://www.gnostice.com)' Align = alRight BorderStyle = bsNone Indent = 19 TabOrder = 2 Active = False Version = '5.0.0.838' end object gtPDFSearchPanel1: TgtPDFSearchPanel Left = 0 Top = 0 Width = 262 Height = 505 About = 'Gnostice PDFtoolkit (http://www.gnostice.com)' Active = False Align = alLeft Constraints.MinHeight = 160 Constraints.MinWidth = 262 Color = clWhite TabOrder = 3 Version = '5.0.0.838' end object gtPDFDocument1: TgtPDFDocument About = 'Gnostice PDFtoolkit (http://www.gnostice.com)' Version = '5.0.0.838' OpenAfterSave = False MergeOptions = [] EMailAfterSave = False ShowSetupDialog = False Left = 88 Top = 232 end object gtPDFPrinter1: TgtPDFPrinter Collate = True Options = [poPageNums] About = 'Gnostice PDFtoolkit (http://www.gnostice.com)' Version = '5.0.0.838' AutoRotate = False IgnoreHardMargin = True RenderingOptions = [] Left = 56 Top = 232 end object MainMenu1: TMainMenu Left = 24 Top = 232 object MenuSecenekleri: TMenuItem Caption = 'Men'#252' Se'#231'enekleri' object Pdf_Cagir_File: TMenuItem Caption = 'Pdf '#231'a'#287#305'r (wiev)' OnClick = Pdf_Cagir_FileClick end object Pdf_Cagir_Stream: TMenuItem Caption = 'Pdf '#199'a'#287#305'r (Stream)' OnClick = Pdf_Cagir_StreamClick end object N1: TMenuItem Caption = '-' end object Pdf_Imzala: TMenuItem Caption = 'Pdf imzala' OnClick = Pdf_ImzalaClick end object Pdf_BaziAyarlar: TMenuItem Caption = 'Pdf baz'#305' ayarlar' OnClick = Pdf_BaziAyarlarClick end object Pdf_ResimEkle: TMenuItem Caption = 'Pdf i'#231'ine JPG resim ekleme' OnClick = Pdf_ResimEkleClick end object Pdf_Yazdir: TMenuItem Caption = 'pdf yazd'#305'r' OnClick = Pdf_YazdirClick end object Pdf_Kaydet: TMenuItem Caption = 'pdf kaydet' OnClick = Pdf_KaydetClick end end end object OpenDialog1: TOpenDialog Left = 120 Top = 232 end end Dpr Dosyası :
program DelphiCanPdfPrint;
uses
Vcl.Forms,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
Application.MainFormOnTaskbar := True;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
Hayırlı olsun. Hazır pdf okuma, ekleme, imzalama ve yazdırma projesi (kaynak kod) - frmman - 17-10-2020 Teşekkürler elinize sağlık. Hazır pdf okuma, ekleme, imzalama ve yazdırma projesi (kaynak kod) - mcuyan - 18-10-2020 Güzel bir çalışma ve kodlar. elinize sağlık Hazır pdf okuma, ekleme, imzalama ve yazdırma projesi (kaynak kod) - forumcuali - 25-12-2020 çok güzel... ellerinize sağlık lakin bileşenin ücretli olması hevesimi kursağımda bıraktı...benzer ve ücretsiz bir bileşen var mı? acrobatın ocx ve oleconteiner haricinde.. Hazır pdf okuma, ekleme, imzalama ve yazdırma projesi (kaynak kod) - Bay_Y - 21-09-2021 Allah razı olsun. Eline koluna sağlık. Hazır pdf okuma, ekleme, imzalama ve yazdırma projesi (kaynak kod) - Mikdad - 21-12-2021 Selamun aleykum hocam, bu proje ile pdf yi açabiliyoruz. ama pdf nin içindeki verileri okuyup formun üzerindeki ilgili dbeditlere yazmak istiyorum. yani pdf de önce TC Kimlik noyu bulacak, delphi formdaki TC Kimlik No DBedit e yazacak sonra gidecek AD Soyad ı bulacak gelecek yazacak. bu şekilde bir çözüm var mı acaba |