Skip to content

Commit df353d6

Browse files
author
Ethan Bishop
committed
Revert change to font-size-multiplier option
It's had a detrimental effect on the size of the output HTML, causing more unnecessary empty spans. Needs further investigation to turn on again.
1 parent 04f2afa commit df353d6

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
* Update to .net 8.
66
* Switch base images to Ubuntu Noble (24.04 LTS).
7-
* Increase `font-size-multiplier` to increase text rendering fidelity and get rid of sporadic empty spaces at the end of numbers.
87
* Patch and build `pdf2htmlEX` as part of this build process to use `libopenjp` instead of `libjpeg` for JPEG-2000 support.
98
* All patches are in this source tree, and are applied to directly to the source of the upstream tag during build.
109

src/Pdf2Html/Controllers/RootController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public async Task<ActionResult> Post()
6363
private async Task<(bool Success, ICollection<string> logs)> ConvertAsync(string inputFile, string outputFile)
6464
{
6565
using var p = new Process();
66-
const string conversionOptions = "--embed-javascript=0 --process-outline=0 --printing=0 --bg-format=svg --decompose-ligature 1 --tounicode 1 --font-size-multiplier 20";
66+
const string conversionOptions = "--embed-javascript=0 --process-outline=0 --printing=0 --bg-format=svg --decompose-ligature 1 --tounicode 1";
6767
p.StartInfo = new ProcessStartInfo
6868
{
6969
FileName = "pdf2htmlEX",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:d148ce875ec6d3d3f7cbacc314d32e8d5818fb69a0f6dc7d5ce8cbf2f9bb9ba2
3-
size 1216351
2+
oid sha256:8937481da9ecc248172cd308abec6283e0b2820ea24bf159b602c9d99cdcf9e2
3+
size 1203138

0 commit comments

Comments
 (0)