Hi Nara,

I can't really comment on whether your approach is a good one.  In any case
you may want to try find out at which step in your pipeline the problem
gets introduced.  Is the output of printTopdf still correct?  If yes,
is the output of renderToImage still correct?  And it would help if you
could post a (very) small test program that demonstrates your problem.

Best,
Oliver

On 25.08.2018 17:39, Narayanan Krishnamurthy wrote:
> Hello all,
> 
> I'm using libpoppler-qt5 to print a slip using QPrinter. I'm running my 
> application on Ubuntu 14.04 64 bit PC and Qt-5.8.
> 
> I'm displaying a html page using QWebEngineView. This html page contains text 
> and image. I need to print this page with QPrinter with custom paper size ~ 
> 71mmx73mm. I'm doing following steps before printing :
> 
>  1.
> 
>     Converting the html contents to pdf using libpoppler's printTopdf().
> 
>  2.
> 
>     Rendering the pdf pages into QImage using lbpoppler's renderToImage().
> 
> Issue I'm facing:
> 
> When I print the page using QPrinter, the font size of the rendered text (as 
> I said before, the html page has both text and image) is small, but the 
> rendered image from html looks alright.
> 
> Kindly help and let me know if I'm doing anything wrong.
> 
> 
> Thanks,
> 
> Nara
> 
> 
> 
> _______________________________________________
> poppler mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/poppler
> 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
poppler mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/poppler

Reply via email to