Skip to content

Commit bc29fcf

Browse files
authored
Merge pull request #12 from CoreFiling/feature/switch-to-our-fork
Switch to our fork
2 parents 499d51f + 3463c69 commit bc29fcf

16 files changed

+12
-196
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.3.0
4+
5+
* Switch to `cfl3` CFL patched fork instead of patching as part of this build.
6+
* This improves support for certain font CMaps
7+
* Remove `--tounicode` in favour of `--ignore-tounicode`, as `force` is no longer required.
8+
39
## 0.2.2
410

511
* Patch memory corruption bug due to PNG background images being the incorrect size.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ docker run corefiling/pdf2html pdf2htmlEX:$version --help
2828

2929
Since pdf2htmlex is licensed under the GPL, this project is too (see the LICENSE.TXT file).
3030

31-
As you can see from the build process, pdf2htmlEX itself is patched by the patches within this project (see [src/Pdf2Html/patches](tree/src/Pdf2Html/patches)), based on a clone of the upstream project tag we are targeting. As such we have not repeated pdf2htmlEX's source code here; you can find it via the link above.
31+
As you can see from the build process, pdf2htmlEX itself is aquired from our fork of pdf2htmlEX/pdf2htmlEX found here: https://github.com/CoreFiling/pdf2htmlEX/tree/feature/cfl-patches

src/Pdf2Html/Dockerfile

Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -3,40 +3,12 @@ FROM ubuntu:noble AS build-pdf2htmlex
33

44
# Produces a patched pdf2htmlEX using libopenjp 2.7 instead of libjpeg to get JPEG2000 support.
55

6-
ENV PDF2HTMLEX_BRANCH=
7-
ENV UNATTENDED="--assume-yes"
8-
ENV MAKE_PARALLEL="-j 4"
9-
ENV PDF2HTMLEX_PREFIX=/usr/local
10-
ENV DEBIAN_FRONTEND=noninteractive
11-
126
WORKDIR /source
137
RUN apt update && apt install -y git patch sudo
14-
RUN git clone --depth=1 --branch v0.18.8.rc1 https://github.com/pdf2htmlEX/pdf2htmlEX
8+
RUN git clone --depth=1 --branch 0.18.8.rc1-cfl3 https://github.com/CoreFiling/pdf2htmlEX
159
WORKDIR /source/pdf2htmlEX
1610

17-
COPY ./pdf2htmlEX/patches ./patches
18-
RUN patch ./buildScripts/versionEnvs ./patches/versionEnvs.patch
19-
RUN patch ./buildScripts/buildPoppler ./patches/buildPoppler.patch
20-
RUN patch ./buildScripts/getBuildToolsApt ./patches/getBuildToolsApt.patch
21-
RUN patch ./buildScripts/getDevLibrariesApt ./patches/getDevLibrariesApt.patch
22-
RUN patch ./pdf2htmlEX/src/BackgroundRenderer/SplashBackgroundRenderer.cc ./patches/SplashBackgroundRenderer.cc.patch
23-
RUN patch ./pdf2htmlEX/src/util/unicode.cc ./patches/unicode.cc.patch
24-
RUN patch ./pdf2htmlEX/src/util/unicode.h ./patches/unicode.h.patch
25-
RUN patch ./pdf2htmlEX/CMakeLists.txt ./patches/CMakeLists.patch
26-
27-
RUN ./buildScripts/versionEnvs
28-
RUN ./buildScripts/reportEnvs
29-
RUN ./buildScripts/getBuildToolsApt
30-
RUN ./buildScripts/getDevLibrariesApt
31-
RUN ./buildScripts/getPoppler
32-
RUN patch ./poppler/glib/poppler-enums.c.template ./patches/poppler-enums.c.template.patch
33-
RUN patch ./poppler/glib/poppler-private.h ./patches/poppler-private.h.patch
34-
RUN ./buildScripts/buildPoppler
35-
RUN ./buildScripts/getFontforge
36-
RUN patch ./fontforge/fontforge/tottfgpos.c ./patches/fontforge-tottfgpos.c.patch
37-
RUN ./buildScripts/buildFontforge
38-
RUN ./buildScripts/buildPdf2htmlEX
39-
RUN ./buildScripts/installPdf2htmlEX
11+
RUN ./buildScripts/buildInstallLocallyApt
4012
RUN git config user.name "CoreFiling"
4113
RUN git config user.email "opensource@corefiling.com"
4214
RUN ./buildScripts/createDebianPackage
@@ -51,7 +23,7 @@ RUN apt update && apt install -y wget
5123
RUN wget http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.3-0ubuntu1_amd64.deb
5224
RUN apt install -y ./libjpeg-turbo8_2.0.3-0ubuntu1_amd64.deb
5325
COPY --from=build-pdf2htmlex /source/pdf2htmlEX/imageBuild/*.deb /pdf2htmlEX/
54-
RUN apt install -y libjpeg62 libopenjp2-7 /pdf2htmlEX/pdf2htmlEX-0.18.8.rc1-cfl2-*-x86_64.deb
26+
RUN apt install -y libjpeg62 libopenjp2-7 /pdf2htmlEX/pdf2htmlEX-0.18.8.rc1-cfl3-*-x86_64.deb
5527

5628
WORKDIR /app
5729
COPY --from=build /app ./

src/Pdf2Html/Pdf2Html.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>net8.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
7-
<Version>0.2.2</Version>
7+
<Version>0.3.0</Version>
88
<AssemblyName>Pdf2Html</AssemblyName>
99
<RootNamespace>Pdf2Html</RootNamespace>
1010
</PropertyGroup>

src/Pdf2Html/appsettings.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
"Printing": false,
77
"BgFormat": "svg",
88
"SvgNodeCountLimit": 100,
9-
"DecomposeLigature": true,
10-
"Tounicode": true
9+
"DecomposeLigature": true
1110
},
1211
"Logging": {
1312
"LogLevel": {

src/Pdf2Html/pdf2htmlEX/patches/CMakeLists.patch

Lines changed: 0 additions & 19 deletions
This file was deleted.

src/Pdf2Html/pdf2htmlEX/patches/SplashBackgroundRenderer.cc.patch

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/Pdf2Html/pdf2htmlEX/patches/buildPoppler.patch

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/Pdf2Html/pdf2htmlEX/patches/fontforge-tottfgpos.c.patch

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/Pdf2Html/pdf2htmlEX/patches/getBuildToolsApt.patch

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)