Skip to content

Commit b2ba38a

Browse files
committed
instructions
1 parent d4d8e95 commit b2ba38a

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

.github/workflows/ci-xmake-linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ jobs:
2424
xmake-version: v2.8.6
2525
- name: update repo
2626
run: xmake repo -u
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 1
3030
- name: cache xmake
31-
uses: actions/cache@v2
31+
uses: actions/cache@v4
3232
with:
3333
path: |
3434
${{ env.XMAKE_GLOBALDIR }}/.xmake/packages

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
os: [ubuntu-latest, macos-latest, windows-latest]
1919
include:
2020
- os: macos-latest
21-
extra_cmake_config_flags: -DCMAKE_OSX_ARCHITECTURES="arm64" # was univeral, now just arm till i bundle open ssl
21+
extra_cmake_config_flags: -DCMAKE_OSX_ARCHITECTURES="arm64" # was univeral, now just arm, because of openssl dependency (which is not universal on the CI mac)
2222
- os: windows-latest
2323
extra_cmake_config_flags: -DCMAKE_GENERATOR_PLATFORM=x64 # make sure it's x64
2424

readme.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,13 @@ For documentation about how to use the library API you should head for the Wiki
2121
# Short tour of the project
2222

2323
There are 8 folders to this project:
24-
- **FreeType, LibAesgm, LibJpeg, LibPng, LibTiff, Zlib**: 6 libraries that are dependencies to PDFWriter. They are bundled here for convenience. You don't have to use them to compile PDFWriter, but rather use what versions you have installed on your setup.
24+
- **FreeType, LibAesgm, LibJpeg, LibPng, LibTiff, Zlib**: 6 libraries that are dependencies to PDFWriter. They are bundled here for convenience. You don't have to use them to compile PDFWriter, but rather use what versions you have installed on your setup.
2525
- **PDFWriter**: main folder, includes the library implementation
2626
- **PDFWriterTesting**: test folder, includes test source code that's used with cmake testing application - ctest.
2727

28+
# Pre requisits
29+
- **OpenSSL** - External installation of openssl is required for this library to support PDF2.0 encryption. It is not provided with the codebase as a bundled option. If you do not wish to require this dependency set the PDFHUMMUS_NO_OPENSSL compile flag/cmake option to "1".
30+
2831
# Building, Installing and testing the project with CMake
2932

3033
Once you installed pre-reqs, you can now build the project.
@@ -165,6 +168,8 @@ Note that when installing PDFHummus with the bundled libraries built (this is th
165168

166169
You can use those targets in additon or instead of using PDFWriter if this makes sense to your project (like if you are extracting images, having LibJpeg or LibPng around can be useful).
167170

171+
Important: The library is dependent on OpenSSL. The is no bundling of OpenSSL. you will need to have it preinstalled for building to complete unless you turn off PDF 2.0 encryption/decryption support with `PDFHUMMUS_NO_OPENSSL`.
172+
168173
# Packaging PDFHummus for installing someplace else
169174

170175
The project contains definitions for `cpack`, cmake packaging mechanism. It might be useful for when you want to build PDFHummus and then install it someplace else.
@@ -202,5 +207,5 @@ I wrote a post about how to compile and use the library for the iPhone and iPad
202207

203208
It should be quite simple to construct project files in the various building environments (say VS and Xcode) if you want them. Here are some pointers:
204209
- All the PDFWriter sources are in PDFWriter folder (you can get it by downloading the git project or from the Downloads section).
205-
- The library is dependent on the dlls/shared libraries of Zlib, LibTiff, LibJpeg, LibPng and FreeType. When linking - make sure they are available.
210+
- The library is dependent on the dlls/shared libraries of Zlib, LibTiff, LibJpeg, LibPng, FreeType and OpenSSL. When linking - make sure they are available.
206211
- The library should support well both 32 bit and 64 bit environments. It's using standard C++ libraries.

0 commit comments

Comments
 (0)