Hi, there is a standard page size of generated PDF? I've used a fixed height div to set a page size, but if something change in the content, the height change, so the fixed height div result higher or smaller.
How can i resolve this?
Posts made by Alessandro Sanguedolce
-
PDF page size
-
RE: Set the pdf page content
I use page break to identify the page, but it work only there.
I don't know if a can post it in playground. I'll try.
Thanks for your help. -
RE: Set the pdf page content
it doesn't work. Why page-break doesn't work too?
i think i should use javascript. -
Set the pdf page content
Hi!
I'm using phantom-pdf to make invoice from xml files that i convert in json and then in pdf.
I have a problem printing a table information inside a page without it being cut off. I'll explain. The invoice can contain several tables with information whose number is variable. Initially I printed three tables for each page by playing with margins and padding, but as these tables do not have a static number of lines they may not come into a page and then end up in the other. The result is that information is cut. Also, having set a height of the div that identifies the page, this leads to problems with the next pages.
I do not know if I explained correctly. Any ideas on how to proceed?P.S. sorry for my English.
-
Timeout Problem with conversion
Hi, i've a problem with timeout when i try to convert my json file in pdf.
I made in visual studio a simple routine that take an amount of xml files stored in a directory, convert these file in json and then i obtain pdf files for every json file using the template and phantom pdf in jsreportonline. It works fine with small xml/json files but when they are bigger than 1/2 Mb the program goes in timeout exception.
How can i resolve this issue? -
RE: Footer of my pdf pages
Bjrmatos i've tried to use the same javascript in my project and it works with phantom-pdf but it doesn't work with electron-pdf that is the recipe that i'm using. There is something to change in my code?
EDIT: I don't know why but now it works.
-
RE: Footer of my pdf pages
ok i'll try what you say previously. Thanks a lot
-
RE: Footer of my pdf pages
Well it is really hard to do. I'll try. Does this works with electron-pdf recipe?
-
RE: Footer of my pdf pages
mmmm ok but there is a problem. My job is to provide a template that converts an xml with one or more invoices in pdf using jsreport. So if my data is composed of more than one invoices, how can i bind the right page with the right document number? In the body template i use
{{each invoices}}
{{}} N_invoices
{{/ Each}}
I do not know if it is clear. -
Footer of my pdf pages
Hi, i'm working on create invoice pdf with jsreport studio. I made a lot of things, but i need the last one: the footer of all pdf pages with information like invoice number, current page/pages, and a counter for every document in the pdf.
How can i do this? How can i print these information always in the footer of the pages? -
RE: Error: Worker Timeout
Ok. It's strange cause i use the same template and recipe one week ago and it work fine. But today i have this problem.
-
Error: Worker Timeout
Hi,
I'm having trouble with this error: "Error: Worker Timeout, the worker process does not respond after 20000 ms at Timeout._onTimeout"
I don't know why he stops to work with a 245kb json file. This is the first time that i have this problem.
Is there any solution? -
RE: How can i get information from main template to footer template?
I can use, in the footer template, all javascript functions that i create in the main template, i was wondering if i could use that for my purpose.
Thanks for your reply guys. I'll find another way to create a footer for every pdf-page with some information. -
RE: How can i get information from main template to footer template?
oh ok. There isn't any chance to have the same value of N_invoices of the main template with and another N_invoices (that i get from another {{each}}) in the footer template ?
Another questions:
I notice that i can use function of the main template. How can i pass {#pageNum} as arguments of a function? -
How can i get information from main template to footer template?
Hi guys, how can i get information from main template to a footer template?
In the main template i have a loop like this
{{#each Invoices}}
{{N_invoices}}
{{/each}}how can I pass the value of {{N_invoices}} to a footer template? And how can I use it?