Skip to content

Commit ee39d59

Browse files
committed
import 4.1.5
1 parent 36f2dc2 commit ee39d59

11 files changed

Lines changed: 8496 additions & 4 deletions

PdftkBuilder.dpr

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
program PdftkBuilder;
2+
3+
uses
4+
Forms,
5+
main in 'main.pas' {MainForm},
6+
about in 'about.pas' {AboutForm};
7+
8+
{$R *.res}
9+
10+
begin
11+
Application.Initialize;
12+
Application.Title := 'PDFTK Builder';
13+
Application.HelpFile := 'PdftkBuilder.html';
14+
Application.CreateForm(TMainForm, MainForm);
15+
Application.Run;
16+
end.

PdftkBuilder.ini

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
; PdftkBuilder.ini - Rev 0, Configuration file for PDFtk Builder (pdftkb) Version 4.1.5
2+
; Note: Comment lines begin with a semicolon and are ignored when loading the file
3+
; Default values of parms are applied by commenting out or deleting the corresponding line
4+
5+
; [Numbering] section contains settings for Mark Pages-Number Pages.
6+
; [Application] section contains command line parms for apps that pdftkb uses for displaying
7+
; PDF and TXT files and for performing PDF text comparisons (Tool Set 4-Compare). It also
8+
; contains command line parms for up to five user specified external apps (Tools-Launch).
9+
; [<User>] section has the user's name. When exiting, pdftkb records its last window position,
10+
; protection panel state, and stamp/bg file so they can be recalled next time user runs pdftkb.
11+
12+
[Numbering]
13+
; Following specifies North American Letter (ANSI A) or A4 (ISO) pages in points (1/72 in)
14+
; with 1 inch (25 mm) horizontal and vertical page margins
15+
; 612x792 pts (215.9x279.4 mm, 8.5x11 in) = Letter (ANSI A) PageWidth x PageHeight
16+
; 595x842 pts (210x297 mm, 8.27x11.69 in) = A4 (ISO) PageWidth x PageHeight (default)
17+
; Comment out the PageWidth and PageHeight lines for the page size to be ignored
18+
19+
; PageWidth=612
20+
; PageHeight=792
21+
PageWidth=595
22+
PageHeight=842
23+
NumOffsetX=72
24+
NumOffsetY=36
25+
NumSize=10
26+
DateTimeFormat=dd mmm yyyy
27+
28+
[Applications]
29+
; Provide pdftk version if not using pdftk 2.xx
30+
; PdftkVersion=1.41
31+
32+
; Provide explicit path for pdftk.exe folder if pdftk.exe not located in pdftkb folder
33+
; PdftkPath=C:\Program Files (x86)\PDFtk Server\bin\
34+
35+
; Provide explicit .exe path and args if not using default apps (Windows file association)
36+
; to open (view) .pdf and .txt files. File placeholder %PDFFILE% or %TXTFILE% is required
37+
; in arg if app and arg are both specified
38+
; PdfExe=
39+
; PdfArg=
40+
; TxtExe=
41+
; TxtArg=
42+
43+
; Provide explicit .exe path and args for PDF text compare app to enable Compare button
44+
; on Tool Set 4. Uncomment following two lines to activate WinMerge with xdocdiff plugin
45+
; CompareExe=C:\Program Files (x86)\WinMerge\WinMergeU.exe
46+
; CompareArg=/e %PDFIN% %PDFFILE2%
47+
48+
; Up to 5 external PDF apps (App1-5) can be specified by Item, Exe and Arg
49+
; Up to two input PDF file placeholders can be specified in Arg as follows
50+
; %PDFIN% = source PDF file, %PDFFILE2% = secondary input PDF file (if applicable)
51+
; App1Item=1 - Undefined
52+
; App1Exe=
53+
; App1Arg=
54+
; App2Item=2 - Undefined
55+
; App2Exe=
56+
; App2Arg=
57+
; App3Item=3 - Undefined
58+
; App3Exe=
59+
; App3Arg=
60+
; App4Item=4 - Undefined
61+
; App4Exe=
62+
; App4Arg=
63+
; App5Item=5 - Undefined
64+
; App5Exe=
65+
; App5Arg=
66+
67+
; TEST CASE - If no apps are configured above, uncomment the following two launch items
68+
; to demo the launch function. The two apps must have been installed. Both are free.
69+
; Item 1 allows metadata, PDF initial view, etc. to be set; Item 2 supports image operations
70+
; and cropping. Note: Item 2 does not allow command line parms; hence, no arg value.
71+
; Its source PDF must be selected from its interface rather than from the Tool Set tab
72+
; App1Item=1 - BeCyPDFMetaEdit
73+
; App1Exe=C:\Program Files (x86)\BeCyPDFMetaEdit\BeCyPDFMetaEdit.exe
74+
; App1Arg=%PDFIN%
75+
; App2Item=2 - PDFill PDF Tools
76+
; App2Exe=C:\Program Files (x86)\PlotSoft\PDFill\PDFill_PDF_Tools.exe
77+
; App2Arg=
78+
79+
; PDF AND TXT APP EXAMPLES
80+
; PdfExe=C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe
81+
; PdfArg=/A "pagemode=thumbs" %PDFFILE%
82+
83+
; PdfExe=C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe
84+
; PdfArg=%PDFFILE%
85+
86+
; TxtExe=C:\Program Files (x86)\Notepad++\notepad++.exe
87+
; TxtArg=%TXTFILE%
88+
89+
; TxtExe=C:\WINDOWS\system32\notepad.exe
90+
; TxtArg=%TXTFILE%
91+
92+
93+
; LAUNCH APP EXAMPLES (change App # from 1 to assigned combo box item number 1-5)
94+
; App1Item=1 - BeCyPDFMetaEdit
95+
; App1Exe=C:\Program Files (x86)\BeCyPDFMetaEdit\BeCyPDFMetaEdit.exe
96+
; App1Arg=%PDFIN%
97+
98+
; App1Item=1 - PDFill PDF Tools
99+
; App1Exe=C:\Program Files (x86)\PlotSoft\PDFill\PDFill_PDF_Tools.exe
100+
; App1Arg=
101+
102+
; App1Item=1 - PDF-XChange Editor
103+
; App1Exe=C:\Program Files\Tracker Software\PDF Editor\PDFXEdit.exe
104+
; App1Arg=%PDFIN%
105+
106+
; App1Item=1 - PDF-Shuffler
107+
; App1Exe=C:\Util\PdfBookShuffler\pdfshuffler.exe
108+
; App1Arg=%PDFIN%
109+
110+
; App1Item=1 - PDFsam 2.2.4
111+
; App1Exe=C:\Program Files (x86)\pdfsam-2.2.4-out\pdfsam-starter.exe
112+
; App1Arg=
113+
114+
; App1Item=1 - pdftotext
115+
; App1Exe=pdftotext.exe
116+
; App1Arg=-simple %PDFIN%
117+
118+
; App1Item=1 – Gimposition
119+
; App1Exe=C:\Util\gimposition\Gimpose.exe
120+
; App1Arg=%PDFIN%
121+
122+

PdftkBuilder.res

19.6 KB
Binary file not shown.

PdftkBuilder_Icon.ico

17.1 KB
Binary file not shown.

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# PDFTK-Builder
22
PDFTK Builder is a free graphical interface to PDFTK
33

4-
Latest Version: 4.1.5
5-
Date: 13 Oct 2019
4+
Latest Version: 5.0.0 Alpha
5+
Date: 18 Oct 2020
66
Platform: Windows 32-bit application
77
License: GNU General Public License (GPL), version 3
88
Dependencies: PDFtk Server v2.02; installed PDF viewer
@@ -20,14 +20,18 @@ The distribution includes documentation for both PDFTK Builder and PDFtk Server.
2020

2121
* [Steward & Lee, LLC](http://www.pdflabs.com/tools/pdftk-server) (for GPL PDFtk Server executable and documentation included in the distribution)
2222
* [Angus Johnson](http://www.angusj.com/pdftkb/) (for design and code of GPL PDFTK Builder Version 3 used as the basis of this project)
23-
* [David King](https://sourceforge.net/projects/pdftk-builder-enhanced)
24-
* [Embarcadero Inc.](https://www.embarcadero.com/) (for free license of Delphi 10.2 Tokyo Starter Edition used for this FOSS project)
23+
* [David King](https://sourceforge.net/projects/pdftk-builder-enhanced) (for design and code of GPL PDFTK Builder Version 4 used as the basis of this project)
24+
* [Embarcadero Inc.](https://www.embarcadero.com/) (for free license of Delphi Starter Edition used for this FOSS project)
2525

2626

2727
---
2828

2929
## Version History
3030

31+
### 5.0.0, 18 Oct 2020
32+
33+
fork
34+
3135
### 4.1.5, 13 Oct 2019
3236
* **Bugfix**:
3337
Fixed user interface issue where those tools on the ‘Tool Sets’ tab that do not output PDF files (e.g., ‘Dump Data’) were erroneously enabling or affecting the ‘View’, ‘Locate’ and ‘Pipe’ output buttons.

about.dfm

Lines changed: 208 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,208 @@
1+
object AboutForm: TAboutForm
2+
Left = 550
3+
Top = 428
4+
BorderStyle = bsSingle
5+
Caption = 'PDFTK Builder - About'
6+
ClientHeight = 217
7+
ClientWidth = 293
8+
Color = clBtnFace
9+
Font.Charset = ANSI_CHARSET
10+
Font.Color = clWindowText
11+
Font.Height = -14
12+
Font.Name = 'Arial'
13+
Font.Style = []
14+
OldCreateOrder = False
15+
Position = poMainFormCenter
16+
OnCreate = FormCreate
17+
PixelsPerInch = 144
18+
TextHeight = 16
19+
object Label1: TLabel
20+
Left = 81
21+
Top = 24
22+
Width = 153
23+
Height = 26
24+
Margins.Left = 2
25+
Margins.Top = 2
26+
Margins.Right = 2
27+
Margins.Bottom = 2
28+
Caption = 'PDFTK Builder'
29+
Font.Charset = ANSI_CHARSET
30+
Font.Color = clWindowText
31+
Font.Height = -22
32+
Font.Name = 'Arial'
33+
Font.Style = [fsBold]
34+
ParentFont = False
35+
Transparent = True
36+
end
37+
object Label2: TLabel
38+
Left = 81
39+
Top = 117
40+
Width = 129
41+
Height = 15
42+
Margins.Left = 2
43+
Margins.Top = 2
44+
Margins.Right = 2
45+
Margins.Bottom = 2
46+
Caption = 'A graphical front-end for'
47+
Font.Charset = ANSI_CHARSET
48+
Font.Color = clWindowText
49+
Font.Height = -12
50+
Font.Name = 'Arial'
51+
Font.Style = []
52+
ParentFont = False
53+
end
54+
object Label4: TLabel
55+
Left = 44
56+
Top = 130
57+
Width = 198
58+
Height = 15
59+
Margins.Left = 2
60+
Margins.Top = 2
61+
Margins.Right = 2
62+
Margins.Bottom = 2
63+
Caption = 'the open source PDF Toolkit (PDFtk)'
64+
Font.Charset = ANSI_CHARSET
65+
Font.Color = clWindowText
66+
Font.Height = -12
67+
Font.Name = 'Arial'
68+
Font.Style = []
69+
ParentFont = False
70+
end
71+
object lblUrl: TLabel
72+
Left = 20
73+
Top = 149
74+
Width = 262
75+
Height = 14
76+
Cursor = crHandPoint
77+
Margins.Left = 2
78+
Margins.Top = 2
79+
Margins.Right = 2
80+
Margins.Bottom = 2
81+
Alignment = taCenter
82+
AutoSize = False
83+
Caption = 'https://www.pdflabs.com/tools/pdftk-server/'
84+
Font.Charset = ANSI_CHARSET
85+
Font.Color = clBlue
86+
Font.Height = -12
87+
Font.Name = 'Arial'
88+
Font.Style = [fsBold, fsUnderline]
89+
ParentFont = False
90+
OnClick = lblUrlClick
91+
end
92+
object Label3: TLabel
93+
Left = 24
94+
Top = 67
95+
Width = 245
96+
Height = 19
97+
Margins.Left = 2
98+
Margins.Top = 2
99+
Margins.Right = 2
100+
Margins.Bottom = 2
101+
Alignment = taCenter
102+
AutoSize = False
103+
Caption = 'Copyright '#169' 2017-19 by David King'
104+
Font.Charset = ANSI_CHARSET
105+
Font.Color = clWindowText
106+
Font.Height = -12
107+
Font.Name = 'Arial'
108+
Font.Style = []
109+
ParentFont = False
110+
end
111+
object lblVersion: TLabel
112+
Left = 81
113+
Top = 48
114+
Width = 144
115+
Height = 15
116+
Margins.Left = 2
117+
Margins.Top = 2
118+
Margins.Right = 2
119+
Margins.Bottom = 2
120+
Alignment = taCenter
121+
AutoSize = False
122+
Font.Charset = ANSI_CHARSET
123+
Font.Color = clWindowText
124+
Font.Height = -12
125+
Font.Name = 'Arial'
126+
Font.Style = []
127+
ParentFont = False
128+
end
129+
object Image1: TImage
130+
Left = 41
131+
Top = 25
132+
Width = 31
133+
Height = 33
134+
Margins.Left = 2
135+
Margins.Top = 2
136+
Margins.Right = 2
137+
Margins.Bottom = 2
138+
AutoSize = True
139+
end
140+
object Label5: TLabel
141+
Left = 24
142+
Top = 98
143+
Width = 245
144+
Height = 16
145+
Cursor = crHandPoint
146+
Margins.Left = 2
147+
Margins.Top = 2
148+
Margins.Right = 2
149+
Margins.Bottom = 2
150+
Alignment = taCenter
151+
AutoSize = False
152+
Caption = 'http://www.sourceforge.net'
153+
Font.Charset = ANSI_CHARSET
154+
Font.Color = clBlue
155+
Font.Height = -12
156+
Font.Name = 'Arial'
157+
Font.Style = [fsBold, fsUnderline]
158+
ParentFont = False
159+
OnClick = lblUrlClick
160+
end
161+
object Label6: TLabel
162+
Left = 24
163+
Top = 80
164+
Width = 245
165+
Height = 19
166+
Margins.Left = 2
167+
Margins.Top = 2
168+
Margins.Right = 2
169+
Margins.Bottom = 2
170+
Alignment = taCenter
171+
AutoSize = False
172+
Caption = 'Copyright '#169' 2005-18 by Angus Johnson'#10
173+
Font.Charset = ANSI_CHARSET
174+
Font.Color = clWindowText
175+
Font.Height = -12
176+
Font.Name = 'Arial'
177+
Font.Style = []
178+
ParentFont = False
179+
end
180+
object Label7: TLabel
181+
Left = 88
182+
Top = 48
183+
Width = 130
184+
Height = 15
185+
Caption = 'Enhanced Version 4.1.5'
186+
Font.Charset = ANSI_CHARSET
187+
Font.Color = clWindowText
188+
Font.Height = -12
189+
Font.Name = 'Arial'
190+
Font.Style = []
191+
ParentFont = False
192+
end
193+
object Button1: TButton
194+
Left = 107
195+
Top = 178
196+
Width = 75
197+
Height = 24
198+
Margins.Left = 2
199+
Margins.Top = 2
200+
Margins.Right = 2
201+
Margins.Bottom = 2
202+
Cancel = True
203+
Caption = '&OK'
204+
Default = True
205+
ModalResult = 1
206+
TabOrder = 0
207+
end
208+
end

0 commit comments

Comments
 (0)