Skip to content

Commit 15ad80d

Browse files
Increase font-size-multiplier to increase text rendering fidelity and get rid of sporadic empty spaces at the end of numbers
1 parent 77d71f6 commit 15ad80d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

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";
66+
const string conversionOptions = "--embed-javascript=0 --process-outline=0 --printing=0 --bg-format=svg --decompose-ligature 1 --tounicode 1 --font-size-multiplier 20";
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:d416924ad7759e61180765e12ded835ce483291c5d4d2f608b0b197b062dc98c
3-
size 1229558
2+
oid sha256:7477ce992c3a62ff37d722cb34e9b3e7e896ad4e4239830834f2bb2525231eba
3+
size 1318376

0 commit comments

Comments
 (0)