-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Multi-page PDF rendering broken #14268
Comments
What sha of qtbase did you build against? I'm wondering if this is fixed in qt 5.6 |
@Connorhd I used the version of qtbase that's in master: b5cc008 |
Also having this problem. |
friendly ping. can we please revert the commit? |
I'm also having this issue and I think I know why it's happening. Before, the QWebFrame was printed by a QPrinter using the slot I actually desperately need the |
Yup, just like i thought. This is the logic for
and this is the logic for
I might be overlooking something but it looks like sigh |
Could this also be the reason that currently my (and a lot of other's) PDF's are rendered "too large"? Compared to actually using print functionality in my browser and generation the text and images in generated PDF's are like 1.4-1.5 times larger. |
@JvanderHeide that's a separate issue. I have a hacky workaround in #13997. |
@michaelgmiller Thank you for your reply, that's not what I ment however.
So actual "rendering size" instead of "file size". Not looking to highjack this issue just wondering if they might be related. Also seeing lots of other people with similar issues, with multi-page rendering and people having stuff bleed on to the next page when it shouldn't or items just being partially out of view. To me it looks like it could relate to issues like: |
@JvanderHeide I'm also having the issue with the page being rendered too big. What operating system did you use to render that PDF? On ubuntu, phantom renders the text bigger than chrome would. However in windows, the text renders the same size as chrome would.
Edit: my patch now fixes the issue
I found that In the current github repo of qtbase, the code divides by I think this scaling is the issue. I'm gonna try to patch it and I'll post my results back here because my patch to fix the multi-paged rendering should scale the painter appropriately. @michaelgmiller 's patch for embedded fonts might fix another issue but on the simple page i'm testing on, the text is selectable. |
Welp @JvanderHeide, my PDFs now have the same size as chrome but it only worked when i hard coded the DPI to 96. I think |
@ricokahler Are you still working on this? Would be awesome to get a fix landed for phantomjs 2.5! |
@michaelgmiller sure, give me a week |
@ricokahler any luck? |
Hello, is there any progress in this? The memory leak is solved, but now we cannot have multiple PDF pages. Is there a timeline for next release and what will be included? @ariya |
Due to our very limited maintenance capacity (see #14541 for more details), we need to prioritize our development focus on other tasks. Therefore, this issue will be automatically closed. In the future, if we see the need to attend to this issue again, then it will be reopened. Thank you for your contribution! |
phantomjs --version
.Master
CentOS
Compile from source
n/a
The text was updated successfully, but these errors were encountered: