Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some pdf contents and font bold are lost in the converted jpg #11

Open
tsiank opened this issue Jan 30, 2021 · 0 comments
Open

some pdf contents and font bold are lost in the converted jpg #11

tsiank opened this issue Jan 30, 2021 · 0 comments

Comments

@tsiank
Copy link

tsiank commented Jan 30, 2021

the font bold are lost in the converted jpg, I check your source code and find fontStyleRegex
var fontStyleRegex = Regex.Match(fontname, @"[-,][\w\s]+$");
in PdfToImageConverter.cs can not match font style in my pdf that sent to you via email, by using console.writeline , the output fontname is "AAAAAA+ArialBold" , so I added "+" to fontStyleRegex :Regex.Match(fontname, @"[+-,][\w\s]+$") and the converted jpg's fontstyle are right.

But the words' frame is lost in the converted jpg, I cannot find where the bug is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant