- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2017 10:05 PM
For what I can see, HTML borders do work - but they do only with the tag attribute (<table border="1"...) and not with the CSS styling (<table style="border:1px solid black;"...)
Does anybody know how to add a page break / new page though? We are discussing the issue with SNsupport but nothing seems to work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2017 05:02 AM
In Jakarta and Kingston, the best way to add a page break was to invoke a new function added in the GeneralPDF script include to add this functionality to the generator. Below is what i had to do, and will admit this was a customization to the OOB since i edited the GeneralPDF script includes.
In GeneralPDF i changed the addHTML function to look like this around line 290:
var objects = this.htmlWorker.parseToList(contentReader);
for ( var i = 0; i < objects.size(); i += 1) {
var element = objects.get(i);
if(element.toString() == "[{!Page_Break}]") {
//adding a new page if this element is found!
this.document.addNewPage();
} else {
this.document.add(element);
}
}
In my template i added a line like this in the necessary spot:
{!Page_Break}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2017 05:26 AM
I did that too (I think there's another post of yours that explains it, but no luck). We're on Istanbul, maybe that's the problem...but it does absolutely nothing, the document goes on as there wasn't anything.
thanks a lot
Dario
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-18-2017 05:30 AM
I was not able to get this to work until upgrading to Jakarta so I believe you are right in stating it does not work in Istanbul.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2017 11:05 PM
Hey Jake,
How did you made it work in Jakarta.
in dictionary there is field type as HTML only with no dependent checkbox.
I am stucked there
Any ideas?