You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/cmake.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ jobs:
18
18
os: [ubuntu-latest, macos-latest, windows-latest]
19
19
include:
20
20
- 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)
22
22
- os: windows-latest
23
23
extra_cmake_config_flags: -DCMAKE_GENERATOR_PLATFORM=x64 # make sure it's x64
Copy file name to clipboardExpand all lines: readme.md
+7-2Lines changed: 7 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,13 @@ For documentation about how to use the library API you should head for the Wiki
21
21
# Short tour of the project
22
22
23
23
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.
25
25
-**PDFWriter**: main folder, includes the library implementation
26
26
-**PDFWriterTesting**: test folder, includes test source code that's used with cmake testing application - ctest.
27
27
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
+
28
31
# Building, Installing and testing the project with CMake
29
32
30
33
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
165
168
166
169
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).
167
170
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
+
168
173
# Packaging PDFHummus for installing someplace else
169
174
170
175
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
202
207
203
208
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:
204
209
- 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, LibPngand 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.
206
211
- The library should support well both 32 bit and 64 bit environments. It's using standard C++ libraries.
0 commit comments