Skip to content

Commit

Permalink
import 4.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
landrix committed Oct 18, 2020
1 parent 36f2dc2 commit ee39d59
Show file tree
Hide file tree
Showing 11 changed files with 8,496 additions and 4 deletions.
16 changes: 16 additions & 0 deletions PdftkBuilder.dpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
program PdftkBuilder;

uses
Forms,
main in 'main.pas' {MainForm},
about in 'about.pas' {AboutForm};

{$R *.res}

begin
Application.Initialize;
Application.Title := 'PDFTK Builder';
Application.HelpFile := 'PdftkBuilder.html';
Application.CreateForm(TMainForm, MainForm);
Application.Run;
end.
122 changes: 122 additions & 0 deletions PdftkBuilder.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
; PdftkBuilder.ini - Rev 0, Configuration file for PDFtk Builder (pdftkb) Version 4.1.5
; Note: Comment lines begin with a semicolon and are ignored when loading the file
; Default values of parms are applied by commenting out or deleting the corresponding line

; [Numbering] section contains settings for Mark Pages-Number Pages.
; [Application] section contains command line parms for apps that pdftkb uses for displaying
; PDF and TXT files and for performing PDF text comparisons (Tool Set 4-Compare). It also
; contains command line parms for up to five user specified external apps (Tools-Launch).
; [<User>] section has the user's name. When exiting, pdftkb records its last window position,
; protection panel state, and stamp/bg file so they can be recalled next time user runs pdftkb.

[Numbering]
; Following specifies North American Letter (ANSI A) or A4 (ISO) pages in points (1/72 in)
; with 1 inch (25 mm) horizontal and vertical page margins
; 612x792 pts (215.9x279.4 mm, 8.5x11 in) = Letter (ANSI A) PageWidth x PageHeight
; 595x842 pts (210x297 mm, 8.27x11.69 in) = A4 (ISO) PageWidth x PageHeight (default)
; Comment out the PageWidth and PageHeight lines for the page size to be ignored

; PageWidth=612
; PageHeight=792
PageWidth=595
PageHeight=842
NumOffsetX=72
NumOffsetY=36
NumSize=10
DateTimeFormat=dd mmm yyyy

[Applications]
; Provide pdftk version if not using pdftk 2.xx
; PdftkVersion=1.41

; Provide explicit path for pdftk.exe folder if pdftk.exe not located in pdftkb folder
; PdftkPath=C:\Program Files (x86)\PDFtk Server\bin\

; Provide explicit .exe path and args if not using default apps (Windows file association)
; to open (view) .pdf and .txt files. File placeholder %PDFFILE% or %TXTFILE% is required
; in arg if app and arg are both specified
; PdfExe=
; PdfArg=
; TxtExe=
; TxtArg=

; Provide explicit .exe path and args for PDF text compare app to enable Compare button
; on Tool Set 4. Uncomment following two lines to activate WinMerge with xdocdiff plugin
; CompareExe=C:\Program Files (x86)\WinMerge\WinMergeU.exe
; CompareArg=/e %PDFIN% %PDFFILE2%

; Up to 5 external PDF apps (App1-5) can be specified by Item, Exe and Arg
; Up to two input PDF file placeholders can be specified in Arg as follows
; %PDFIN% = source PDF file, %PDFFILE2% = secondary input PDF file (if applicable)
; App1Item=1 - Undefined
; App1Exe=
; App1Arg=
; App2Item=2 - Undefined
; App2Exe=
; App2Arg=
; App3Item=3 - Undefined
; App3Exe=
; App3Arg=
; App4Item=4 - Undefined
; App4Exe=
; App4Arg=
; App5Item=5 - Undefined
; App5Exe=
; App5Arg=

; TEST CASE - If no apps are configured above, uncomment the following two launch items
; to demo the launch function. The two apps must have been installed. Both are free.
; Item 1 allows metadata, PDF initial view, etc. to be set; Item 2 supports image operations
; and cropping. Note: Item 2 does not allow command line parms; hence, no arg value.
; Its source PDF must be selected from its interface rather than from the Tool Set tab
; App1Item=1 - BeCyPDFMetaEdit
; App1Exe=C:\Program Files (x86)\BeCyPDFMetaEdit\BeCyPDFMetaEdit.exe
; App1Arg=%PDFIN%
; App2Item=2 - PDFill PDF Tools
; App2Exe=C:\Program Files (x86)\PlotSoft\PDFill\PDFill_PDF_Tools.exe
; App2Arg=

; PDF AND TXT APP EXAMPLES
; PdfExe=C:\Program Files (x86)\Adobe\Acrobat Reader DC\Reader\AcroRd32.exe
; PdfArg=/A "pagemode=thumbs" %PDFFILE%

; PdfExe=C:\Program Files (x86)\SumatraPDF\SumatraPDF.exe
; PdfArg=%PDFFILE%

; TxtExe=C:\Program Files (x86)\Notepad++\notepad++.exe
; TxtArg=%TXTFILE%

; TxtExe=C:\WINDOWS\system32\notepad.exe
; TxtArg=%TXTFILE%


; LAUNCH APP EXAMPLES (change App # from 1 to assigned combo box item number 1-5)
; App1Item=1 - BeCyPDFMetaEdit
; App1Exe=C:\Program Files (x86)\BeCyPDFMetaEdit\BeCyPDFMetaEdit.exe
; App1Arg=%PDFIN%

; App1Item=1 - PDFill PDF Tools
; App1Exe=C:\Program Files (x86)\PlotSoft\PDFill\PDFill_PDF_Tools.exe
; App1Arg=

; App1Item=1 - PDF-XChange Editor
; App1Exe=C:\Program Files\Tracker Software\PDF Editor\PDFXEdit.exe
; App1Arg=%PDFIN%

; App1Item=1 - PDF-Shuffler
; App1Exe=C:\Util\PdfBookShuffler\pdfshuffler.exe
; App1Arg=%PDFIN%

; App1Item=1 - PDFsam 2.2.4
; App1Exe=C:\Program Files (x86)\pdfsam-2.2.4-out\pdfsam-starter.exe
; App1Arg=

; App1Item=1 - pdftotext
; App1Exe=pdftotext.exe
; App1Arg=-simple %PDFIN%

; App1Item=1 – Gimposition
; App1Exe=C:\Util\gimposition\Gimpose.exe
; App1Arg=%PDFIN%


Binary file added PdftkBuilder.res
Binary file not shown.
Binary file added PdftkBuilder_Icon.ico
Binary file not shown.
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# PDFTK-Builder
PDFTK Builder is a free graphical interface to PDFTK

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

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


---

## Version History

### 5.0.0, 18 Oct 2020

fork

### 4.1.5, 13 Oct 2019
* **Bugfix**:
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.
Expand Down
208 changes: 208 additions & 0 deletions about.dfm
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
object AboutForm: TAboutForm
Left = 550
Top = 428
BorderStyle = bsSingle
Caption = 'PDFTK Builder - About'
ClientHeight = 217
ClientWidth = 293
Color = clBtnFace
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -14
Font.Name = 'Arial'
Font.Style = []
OldCreateOrder = False
Position = poMainFormCenter
OnCreate = FormCreate
PixelsPerInch = 144
TextHeight = 16
object Label1: TLabel
Left = 81
Top = 24
Width = 153
Height = 26
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
Caption = 'PDFTK Builder'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -22
Font.Name = 'Arial'
Font.Style = [fsBold]
ParentFont = False
Transparent = True
end
object Label2: TLabel
Left = 81
Top = 117
Width = 129
Height = 15
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
Caption = 'A graphical front-end for'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
end
object Label4: TLabel
Left = 44
Top = 130
Width = 198
Height = 15
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
Caption = 'the open source PDF Toolkit (PDFtk)'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
end
object lblUrl: TLabel
Left = 20
Top = 149
Width = 262
Height = 14
Cursor = crHandPoint
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
Alignment = taCenter
AutoSize = False
Caption = 'https://www.pdflabs.com/tools/pdftk-server/'
Font.Charset = ANSI_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Arial'
Font.Style = [fsBold, fsUnderline]
ParentFont = False
OnClick = lblUrlClick
end
object Label3: TLabel
Left = 24
Top = 67
Width = 245
Height = 19
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
Alignment = taCenter
AutoSize = False
Caption = 'Copyright '#169' 2017-19 by David King'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
end
object lblVersion: TLabel
Left = 81
Top = 48
Width = 144
Height = 15
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
Alignment = taCenter
AutoSize = False
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
end
object Image1: TImage
Left = 41
Top = 25
Width = 31
Height = 33
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
AutoSize = True
end
object Label5: TLabel
Left = 24
Top = 98
Width = 245
Height = 16
Cursor = crHandPoint
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
Alignment = taCenter
AutoSize = False
Caption = 'http://www.sourceforge.net'
Font.Charset = ANSI_CHARSET
Font.Color = clBlue
Font.Height = -12
Font.Name = 'Arial'
Font.Style = [fsBold, fsUnderline]
ParentFont = False
OnClick = lblUrlClick
end
object Label6: TLabel
Left = 24
Top = 80
Width = 245
Height = 19
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
Alignment = taCenter
AutoSize = False
Caption = 'Copyright '#169' 2005-18 by Angus Johnson'#10
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
end
object Label7: TLabel
Left = 88
Top = 48
Width = 130
Height = 15
Caption = 'Enhanced Version 4.1.5'
Font.Charset = ANSI_CHARSET
Font.Color = clWindowText
Font.Height = -12
Font.Name = 'Arial'
Font.Style = []
ParentFont = False
end
object Button1: TButton
Left = 107
Top = 178
Width = 75
Height = 24
Margins.Left = 2
Margins.Top = 2
Margins.Right = 2
Margins.Bottom = 2
Cancel = True
Caption = '&OK'
Default = True
ModalResult = 1
TabOrder = 0
end
end
Loading

0 comments on commit ee39d59

Please sign in to comment.