yes, and also when we upload big-size images like 3Mb to 4Mb when we upload 8 to 10 images of this size, and then when we generate PDF the jsreport will take a minute to render and download that report
Fayaaz
@Fayaz Ali
Posts made by Fayaz Ali
-
RE: Downloaded PDF lagging when opening it in any browser
-
Downloaded PDF lagging when opening it in any browser
When there is a large report, for example, 80 to 90Mb report, it will take 30 to 40 seconds to download or open, when we open it in any browser it will hang or lag while opening and it was not moving smoothly
-
TOC Duplicating issue
here is the toc code
and this is my toc UI
what issue i am facing that write only 1 border line it is duplicating
also the header where Table of content heading is defined is doubled i just overlap them
but what should i do show only 1 border line i just implement 1 -
RE: (Page.printToPDF): Printing failed
here are my chrome pdf
also I have data where are a lot images and i am populating them
when i clone the first time the project runs
/* .thumbnail-wrapper {
margin-top: 1rem;
display: inline-flex;
justify-content: center;
width: 100%;
}
}
.thumbnail-wrapper .thumbnail {
margin: 0 16px;
}
.thumbnail-wrapper .thumbnail .img-wrap {
margin: 0;
display: flex;
justify-content: center;
}
.thumbnail-wrapper .thumbnail .img-wrap img {
max-width: 50px;
max-height: 50px;
/* object-fit: contain; */
} */this is first time css
but when i change my css in img in object fit contain from cover the issue comes and when i revert it back it stil comes
also i searched about it in Jsreport it tells me that images that take cover in object will take more space
so whats the solution of it that if i applied cover it shouldn't give me error -
(Page.printToPDF): Printing failed
hi @jan_blaha @bjrmatos
when i run my JsReport after 6 to 7 seconds this error comes, I searched a lot and there is a discussion about related to updating the puppeteer version or increasing the from config json I tried a lot but it still comesReport "main" render failed.
Protocol error (Page.printToPDF): Printing failed
ProtocolError: Protocol error (Page.printToPDF): Printing failed -
RE: How to remove space of Header from which is added from header - footer pdf utils
@jan_blaha there is another issue in faced in TOC
https://playground.jsreport.net/w/anon/hA41M5eB Here is the link in which I add <br> Tag
And this is the full code
<!--
we render TOC template twice
the first in the main template - this is needed for inner pdf links
the second time it is rendered as merge operation in pdf utils - this is needed to for gettign page numbers in TOC
-->
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
<br></br>
{#child toc @template.recipe=html}
{{#level chapters}}
<div style='page-break-before: always;'></div>
<h1 id="{{id}}">{{title}}</h1>
<!-- pdf utils page item is used for getting page numbers in TOC template -->
{{{pdfAddPageItem id=id}}}
{{/level}} -
RE: How to remove space of Header from which is added from header - footer pdf utils
Hi @bjrmatos Thanks for responding, the template we make is not on Playground we have this in our local 6060
The issue is simple, that we're getting is when we add a Header footer from Pdf utils and then we want only footer content, we don't need header content, we remove the header class bit still header takes its space on every page
and if we remove <header></header> tag then the footer will show at the top of the page
As you can see in this Link https://playground.jsreport.net/w/anon/dOKnJmf_ that I commented the header tag and footer will show at the top of the page