Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

This pdf can't be rendered properly #11

Closed
lilydjwg opened this issue Sep 9, 2012 · 18 comments
Closed

This pdf can't be rendered properly #11

lilydjwg opened this issue Sep 9, 2012 · 18 comments

Comments

@lilydjwg
Copy link

lilydjwg commented Sep 9, 2012

http://arxiv.org/pdf/0902.1610.pdf

Text is overlapped and cut off on the edge, and colored boxes surrounding links are missing. Also, links can't be clicked.

@coolwanglu
Copy link
Owner

I didn't observed overlapping, could you please try with devv or exp branch?
Disappearing colored boxes should be something wrong with SplashOutputDev, but I'll confirm it.

Links will be supported soon.

@coolwanglu
Copy link
Owner

Fixed.
Also links are supported now.

@lilydjwg
Copy link
Author

Links are fine now, but the overlapping still exists. Try firefox, please. It's fine in Chrome and Opera.

@coolwanglu
Copy link
Owner

I've been actually debugging with firefox, and didn't observe any overlapping..weird...
What's the version of your FF?

@lilydjwg
Copy link
Author

My Firefox is 15.0.1 on Arch Linux x86_64.

@coolwanglu
Copy link
Owner

I've update the master branch.
If it still doesn't work, maybe try a larger value for --font-size-multiplier ?

@lilydjwg
Copy link
Author

Still doesn't work, even with --font-size-multiplier 10. Here's a screenshot.
PS: You put the scrollbar on a div instead of body, so I can't get a complete screenshot.

@coolwanglu
Copy link
Owner

Oh, I see you have zommed out a lot.
Maybe you have specified a minimum font size in your browser?

On Wednesday, September 26, 2012, 依云 wrote:

Still doesn't work, even with --font-size-multiplier 10. Herehttp://img.vim-cn.com/ca/1f9b4d9cfcfeddfa16df8181e6ecbc5dc32288's
a screenshot.
PS: You put the scrollbar on a div instead of body, so I can't get a
complete screenshot.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-8877979.

@lilydjwg
Copy link
Author

No. It's the same without zooming. I zoomed it so you can see clearly. And I've checked with a minimal-configured Firefox profile. The relative position and size is the same.

@coolwanglu
Copy link
Owner

ok let me check further

On Wednesday, September 26, 2012, 依云 wrote:

No. It's the same without zooming. I zoomed it so you can see clearly. And
I've checked with a minimal-configured Firefox profile. The relative
position and size is the same.


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-8878592.

@coolwanglu
Copy link
Owner

I see that the font for main text is not embedded, then in HTML the font is declared only with names and let browser to find a matching font.

Sometimes the matching font is the same as described in PDF, sometimes it is not; if it's not, PDF viewer may modify accordingly when rendering the file, but for HTML, the font has to be embedded in order to be modified.

maybe try --embed-base-font 1 ?

@coolwanglu
Copy link
Owner

行了吗?

@lilydjwg
Copy link
Author

不行,不过重叠部分少了,排版却更差了。我的邮件似乎丢失了。待会找回来重发。

@lilydjwg
Copy link
Author

邮件丢了,只找到截图: http://img.vim-cn.com/98/d89c6b66bb17f6af387f8eaa8016f3d9d5b844

@coolwanglu
Copy link
Owner

等你有空,能否麻烦提供如下东西

poppler和fontforge的版本
poppler 自己渲染的结果: pdftocario -l 1 -png xxx.pdf 会有一个png
使用最新的devv分支,pdf2htmlEX -l 1 --debug 1 xxx.pdf, 把输出的html发我,另外留意log中会有一行
embed font: 1, 我需要path那个文件

谢谢!

On Thu, Sep 27, 2012 at 11:00 AM, 依云 notifications@github.com wrote:

邮件丢了,只找到截图:
http://img.vim-cn.com/98/d89c6b66bb17f6af387f8eaa8016f3d9d5b844


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-8920170.

@coolwanglu
Copy link
Owner

In the screenshot you provided, I see that the font are seems different
from mine.
That font is not embed, and will be matched by poppler, so please check if
poppler itself may render it correctly.

2012/9/27 王璐 coolwanglu@gmail.com

等你有空,能否麻烦提供如下东西

poppler和fontforge的版本
poppler 自己渲染的结果: pdftocario -l 1 -png xxx.pdf 会有一个png
使用最新的devv分支,pdf2htmlEX -l 1 --debug 1 xxx.pdf, 把输出的html发我,另外留意log中会有一行
embed font: 1, 我需要path那个文件

谢谢!

On Thu, Sep 27, 2012 at 11:00 AM, 依云 notifications@github.com wrote:

邮件丢了,只找到截图:
http://img.vim-cn.com/98/d89c6b66bb17f6af387f8eaa8016f3d9d5b844


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-8920170.

@lilydjwg
Copy link
Author

  • poppler 0.20.3-1
  • fontforge 20120731_b-1

poppler 自己渲染的正常:http://img.vim-cn.com/42/a0f16e43e6da0723850238e2923b9bb48cbcf0

HTML 文件,字体文件 DejaVuSerif.ttf

@coolwanglu
Copy link
Owner

The problem is that width of glyphs in the fonts are still not handles
correclty.
I've created an issues, and will be working on it.

Thanks a lot for reporting and all your help!

On Thu, Sep 27, 2012 at 2:13 PM, 依云 notifications@github.com wrote:

  • poppler 0.20.3-1
  • fontforge 20120731_b-1

poppler 自己渲染的正常:
http://img.vim-cn.com/42/a0f16e43e6da0723850238e2923b9bb48cbcf0

HTML 文件 http://img.vim-cn.com/ab/43e413d8d62b8210ef887654dee0a8b3939c9b,字体文件
DejaVuSerif.ttfhttp://img.vim-cn.com/11/366a0ff00faf319b9c26c72206aaf1b3fca6a1


Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-8926830.

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

No branches or pull requests

2 participants