Open source PDF editor. https://jakubmelka.github.io/
Find a file
2026-01-18 18:48:35 +01:00
.github Issue #348: Remove libfuse2 2026-01-11 18:59:58 +01:00
3rdparty_licenses Use LF instead of CRLF 2021-09-27 11:14:20 +02:00
assets Issue #189: Create MSIX package 2024-06-29 14:20:35 +02:00
CodeGenerator Issue #271: Update the license of all files 2025-04-27 12:39:06 +02:00
Desktop Release of version 1.5.2.0 2025-09-20 16:07:15 +02:00
Flatpak Linux install 2025-12-22 15:39:09 +01:00
JBIG2_Viewer Issue #271: Update the license of all files 2025-04-27 12:39:06 +02:00
Pdf4QtDiff Issue: Color setting is not saved 2025-06-07 20:09:02 +02:00
Pdf4QtEditor Issue #271: Update the license of all files 2025-04-27 12:39:06 +02:00
Pdf4QtEditorPlugins Issue #284: Scaling dimensions - font, text color, background color 2025-07-05 18:47:29 +02:00
Pdf4QtLaunchPad Flatpak fix 2025-09-21 17:18:26 +02:00
Pdf4QtLibCore Issue #329: How to remove "External links" 2026-01-17 15:13:27 +01:00
Pdf4QtLibGui Issue #329: How to remove "External links" 2026-01-17 15:13:27 +01:00
Pdf4QtLibWidgets Issue #144: Fix translate polygon annotations 2026-01-18 16:57:26 +01:00
Pdf4QtPageMaster Issue #310: Docpage organiser uses PDF title rather than filename 2025-09-14 16:33:31 +02:00
Pdf4QtViewer Issue #271: Update the license of all files 2025-04-27 12:39:06 +02:00
PdfExampleGenerator Issue #271: Update the license of all files 2025-04-27 12:39:06 +02:00
PdfTool Issue #329: How to remove "External links" 2026-01-17 15:13:27 +01:00
resources Use LF instead of CRLF 2021-09-27 11:14:20 +02:00
translations Update of translation files 2026-01-18 17:01:42 +01:00
UnitTests Issue #271: Update the license of all files 2025-04-27 12:39:06 +02:00
vcpkg/overlays Update ports 2025-12-22 15:23:50 +01:00
VisualStudio Use LF instead of CRLF 2021-09-27 11:14:20 +02:00
WixInstaller Fix of windows installer 2026-01-18 18:48:35 +01:00
xfa XFA: Bugfixing - proper edge and corner drawing 2021-12-08 19:37:18 +01:00
.gitignore Update CI 2025-02-08 19:15:17 +01:00
.licensee.yml Issue #104: Try to solve license problem 2023-11-05 14:15:16 +01:00
AppxManifest.xml.in Update package name 2024-07-04 18:50:39 +02:00
CMakeLists.txt Release of version 1.5.3.0 2026-01-18 17:07:59 +01:00
Dockerfile Issue #303: Add Dockerfile for Simplified PDF4QT Setup with Qt 6.9.1 and All Dependencies 2025-08-23 20:23:55 +02:00
generated_code_definition.xml Issue #40: Sanitize document 2023-02-19 18:36:46 +01:00
LICENSE Issue #271: Update the license of all files 2025-04-27 12:39:06 +02:00
make-package.sh.in Issue #157: debian .deb release 2024-02-03 11:59:23 +01:00
NOTES.txt Public key encryption: authorization, create file encryption key 2022-06-29 17:44:42 +02:00
qt.conf Signatures: line tool 2022-02-13 19:46:09 +01:00
README.md Issue #279: qt_add_translations uses options only in qt 6.9 2025-06-29 20:21:21 +02:00
Release_Process.txt Issue #39: Sign binaries with certificate 2023-02-01 19:48:48 +01:00
RELEASES.txt Release of version 1.5.3.0 2026-01-18 17:07:59 +01:00
vcpkg-configuration.json Update ports 2025-12-22 15:23:50 +01:00
vcpkg.json Issue #333: ijg-libjpeg obsoleted in vcpkg 2025-11-08 16:40:54 +01:00
vcpkg_with_qt.json Issue #333: ijg-libjpeg obsoleted in vcpkg 2025-11-08 16:40:54 +01:00
version.txt.in Update of windows/linux install workflow 2024-07-03 11:23:38 +02:00

CI

PDF4QT

(c) Jakub Melka 2018-2025

Mgr.Jakub.Melka@gmail.com

https://jakubmelka.github.io/

This software is consisting of PDF rendering library, and several applications, such as advanced document viewer, command line tool, and document page manipulator application. Software is implementing PDF functionality based on PDF Reference 2.0. It is written and maintained by Jakub Melka.

Software works on Microsoft Windows / Linux.

Software is provided without any warranty of any kind.

Should you find this software beneficial, your support would be greatly appreciated ❤️ Sponsor!

1. ACKNOWLEDGEMENTS

This software is based in part on the work of the Independent JPEG Group.

Portions of this software are copyright © 2019 The FreeType Project (www.freetype.org). All rights reserved.

This software was originally licensed under the GNU Lesser General Public License version 3 (LGPLv3). As of April 27, 2025, the project has been relicensed under the MIT License by the original author. The change to the MIT License was made to provide greater freedom and flexibility for both open-source and commercial use, reduce legal complexity, and encourage broader adoption and contribution.

Please see the attached LICENSE.txt file for details.

This software also uses several third-party libraries, and users must comply with the licenses of those third-party components.

3. FEATURES

Software have following features (the list is not complete):

  • multithreading support
  • encryption
  • color management
  • optional content handling
  • text layout analysis
  • signature validation
  • annotations
  • form filling
  • text to speech capability
  • editation
  • file attachments
  • optimalization (compressing documents)
  • command line tool
  • audio book conversion
  • internal structure inspector
  • compare documents
  • static XFA support (readonly, simple XFA only)
  • electronically/digitally sign documents
  • public key security encryption

4. THIRD PARTY LIBRARIES

Several third-party libraries are used.

  1. libjpeg, see https://www.ijg.org/
  2. FreeType, see https://www.freetype.org/index.html, FTL license used
  3. OpenJPEG, implementing Jpeg2000, see https://www.openjpeg.org/, 2-clause MIT license
  4. Qt, https://www.qt.io/, LGPL license used
  5. OpenSSL, https://www.openssl.org/, Apache 2.0 license
  6. LittleCMS, http://www.littlecms.com/
  7. zlib, https://zlib.net/
  8. Blend2D, https://blend2d.com/

5. CONTRIBUTIONS

Contributions are welcome!

Since the project is now licensed under the MIT License, contributions can be freely submitted without the need to sign a Contributor License Agreement (CLA). However, all contributions must be made under the terms of the MIT License to ensure license consistency across the project.

You are encouraged to contribute by testing, offering feedback, providing advice, or submitting code improvements.

6. INSTALLING

Windows

The Release page lists binaries for Windows, both with and without an installer.

Arch Linux

A pdf4qt-git package is available in the AUR.

Linux - Flatpak/AppImage

For other Linux distributions, there are two options available. A Flatpak package can be accessed at Flathub. Alternatively, an AppImage is available in the Releases section. The AppImage format is designed to work on nearly all Linux systems. Historically, a .deb package was also offered, but it has been discontinued due to compatibility issues with some Linux distributions. The executable names are: Pdf4QtEditor, Pdf4QtDiff, Pdf4QtLaunchPad, Pdf4QtPageMaster, Pdf4QtViewer, and PdfTool.

7. COMPILING

This software can be compiled on both Windows and Linux. A compiler supporting the C++20 standard is needed.

On Windows, you can use Visual Studio 2022 or MinGW.

On Linux, a GCC version >= 8 should work, altough we tested it with GCC 11.

Compiling from sources

  1. Install vcpkg

     git clone https://github.com/Microsoft/vcpkg.git
     ./vcpkg/bootstrap-vcpkg.sh -disableMetrics
     VCPKG_ROOT=$(pwd)/vcpkg
    

    Check that vcpkg path is correct: $VCPKG_ROOT/vcpkg --version.

  2. Build PDF4QT

    2.1 Clone repo

     git clone https://github.com/JakubMelka/PDF4QT
     cd PDF4QT
    

    2.2 Configure

     cmake -B build -S . -DPDF4QT_INSTALL_QT_DEPENDENCIES=0 -DCMAKE_TOOLCHAIN_FILE=$VCPKG_ROOT/scripts/buildsystems/vcpkg.cmake -DCMAKE_INSTALL_PREFIX='/' -DCMAKE_BUILD_TYPE=Release
    

    For a debug build, append -DCMAKE_BUILD_TYPE=Debug.

    It is recommended to set the VCPKG_OVERLAY_PORTS variable to 'PDF4QT/vcpkg/overlays' to prevent crashes due to the incompatible LIBPNG library on some Linux systems.

    2.3 Build

     cmake --build build
    

    Use the -j switch to build multiple files in parallel.

    2.4 Install

     sudo cmake --install build
    

    To uninstall, run sudo xargs rm < ./build/install_manifest.txt.

Using Qt Creator (both Windows/Linux)

  1. Download Qt 6.9 or higher, and VCPKG package manager (https://vcpkg.io/en/index.html)
  2. Open Qt Creator and configure the project
  3. Build

CMAKE Compilation Options

Several important compilation options are available and should be set before building. On Windows, CMake can prepare a Wix project to create a *.msi installer package.

Option Platform Description
PDF4QT_INSTALL_MSVC_REDISTRIBUTABLE Windows Includes MSVC redistributable in installation
PDF4QT_INSTALL_PREPARE_WIX_INSTALLER Windows Prepare .msi installator using Wix installer
PDF4QT_INSTALL_DEPENDENCIES Any Install dependent libraries into installation directory
PDF4QT_INSTALL_QT_DEPENDENCIES Any Install Qt dependent libraries into installation directory
VCPKG_OVERLAY_PORTS Linux Set it to prevent crashes with incompatible libpng library

Following important variables should be set or checked before any attempt to compile this project:

Variable Platform Description
PDF4QT_QT_ROOT Any Qt installation directory
QT_CREATOR_SKIP_VCPKG_SETUP Any Enable or disable automatic vcpkg setup
CMAKE_PROJECT_INCLUDE_BEFORE Any Should be set to package manager auto setup
CMAKE_TOOLCHAIN_FILE Any Should be set to toolchain
CMAKE_BUILD_TYPE Any Can be Release (default) or Debug

Sample setup on Windows

Following set of variables gives sample setup for MS Windows. It is minimal initial configuration to be able to built Debug build on MS Windows.

Key Value
CMAKE_BUILD_TYPE Debug
CMAKE_CXX_COMPILER %{Compiler:Executable:Cxx}
CMAKE_C_COMPILER %{Compiler:Executable:C}
CMAKE_GENERATOR Ninja
CMAKE_PREFIX_PATH %{Qt:QT_INSTALL_PREFIX}
CMAKE_PROJECT_INCLUDE_BEFORE %{IDE:ResourcePath}/package-manager/auto-setup.cmake
CMAKE_TOOLCHAIN_FILE %{Qt:QT_INSTALL_PREFIX}/lib/cmake/Qt6/qt.toolchain.cmake
PDF4QT_QT_ROOT C:/Programming/Qt/6.4.0/msvc2019_64
QT_QMAKE_EXECUTABLE %{Qt:qmakeExecutable}

Tested Compilers - Windows

  • Visual Studio 2022 (Microsoft Visual C++ Compiler 17.1)
  • MinGW 11.2.0

Tested Compilers - Linux

  • GCC 13.1.1

8. DISCLAIMER

I wrote this project in my free time. I hope you will find it useful!