I am currently using a word template and have everything lined up perfectly. When the workflow trigger the PDF creation I notice that the final pdf has really wide margins, mashing my data into strange positions. Is there a way to set wider margins for the PDFs being created? Changing it in the template doesnt seem to have any effect.
Solved! Go to Solution.
First of all thanks for your input which pointed me in the right direction. LeventK I reverted back to Google Docs and as you suggested I created single a row and column table as I had previously done. Seeing as Reza is right; I was able to align the table using the margin properties from GDoc, it got me thinking that maybe my issue was not only the margins.
I went back and did as Reza suggested and managed to widen the margins. My data now seemed to fit as required however the data in the table rows were not aligning once I parsed the template through to PDF.
For the benefit of others:
Yes, the PDF parser margins can be adjusted by tweaking the GDOC margin properties
Make sure all entries in each cell does not have trailing spaces!!! You cannot see them in the template and everything looks nicely aligned, however the parser seems to process trailing spaces in such a way that it will : mess up alignment (eg. some entries wont center) and cell padding will differ from row to row. Once you remove trailing spaces everything looks good and works well.
Thanks for the help! SOLVED
Can you provide screenshots of the template and created PDF, so we could compare the margins?
Top is the template in Word
Below is appsheet PDF
Thanks in advance,
Jethro
@Jethro
I may advise creating all the template items inside a 1 row 1 column table in the gDoc and make its borders 0pt thick and white color. Then the PDF parser will possibly respect the borders of the table
@LeventK @RezaRaoofi I actually did use Gdoc with a single column single row table but it gave far worse results. Items were moving all around the page and it was as if nothing translated 1:1 from Google doc to PDF. Results were a bit better with WORD with margins being my only major issue. Any additional advise on where to look would really help as I am completely stuck on this.
Well, from what I can see in the above picture your template document currently has left and right margins; have you tried going to page setup and change them to zero?
I just quickly tested it on a Google Doc template; set default 2.54 cm left margin to zero and could reduce the PDF margin to this:
First of all thanks for your input which pointed me in the right direction. LeventK I reverted back to Google Docs and as you suggested I created single a row and column table as I had previously done. Seeing as Reza is right; I was able to align the table using the margin properties from GDoc, it got me thinking that maybe my issue was not only the margins.
I went back and did as Reza suggested and managed to widen the margins. My data now seemed to fit as required however the data in the table rows were not aligning once I parsed the template through to PDF.
For the benefit of others:
Yes, the PDF parser margins can be adjusted by tweaking the GDOC margin properties
Make sure all entries in each cell does not have trailing spaces!!! You cannot see them in the template and everything looks nicely aligned, however the parser seems to process trailing spaces in such a way that it will : mess up alignment (eg. some entries wont center) and cell padding will differ from row to row. Once you remove trailing spaces everything looks good and works well.
Thanks for the help! SOLVED
@Jethro
Glad to hear that you have solved the problem. Also, with the table properties of gDoc, itโs a good idea to play with cell padding property as well
Please explain the method with Screen ๐
I thought I would add my experience here because I have had a lot of frustration with margins, whether I use a Google Doc template or an MS Word template.
However, I have had recent success that I'd like to share. I hope I'm not repeating someone else's discovery.
I used a Google Doc in this solution, but it also works with an MS-Word document.
1. Set the margins in your template to 0.0. For Google Docs, use the File > Page Setup and set the Top, Left, Right and bottom values to 0.0
2. In your App Sheet template, set the "Attachment Settings > Attachment Page Size" to "Custom", and then set the dimensions and margins of your page. For a letters size, this is 297mm height x 210mm width, with top, right, left and bottom margins at 36pt (that is 0.5 in)
And now I have output that seems to behave properly.
I was also able to get the header row of a table to repeat when it crossed to a new page, using the 'pin header row' option in Google Docs. I was pleasantly surprised to see that work.
I did try to see if the table header would repeat from page to page with an MS-Word document. Unfortunately, it does not appear to work.
Best of luck with your templates!
Can't tell you how much useful this piece of information was ! It really helped me in getting pdf printed in suitable format for the google Doc template I was preparing .
@BrunoLarochelle thank you so much sir. I struggled a lot to manage but as you suggested that worked perfectly. thank a lot.
User | Count |
---|---|
18 | |
15 | |
10 | |
7 | |
4 |