Hello all,
I am trying to print a PDF from an Mindtouch page and it not printing beyond 50 pages. I am getting the following error.
<error><exception>MindTouch.Deki.Exceptions.ExportPDFTooManyPagesException</exception><resource>System.API.Error.pdf_too_many_pages</resource><arguments count="2"><argument>54</argument><argument>50</argument></arguments><message>This PDF has 54 pages. The limit is 50 pages.</message><data><pagecount>54</pagecount><pagelimit>50</pagelimit></data></error>
This is the code that we are using to generate the PDF.
var pdfLink = xml.text(wiki.api(uri.build(site.api, ['pages', string.cast(page.id)])), '/page/contents.alt/@href');
var pdfWithChildren = pdfLink .. "?stylesheet=default&deep=true&showtoc=true";
var pdfWithoutChildren = pdfLink .. "?stylesheet=default&deep=false";
<div id="pdf-book">
//<a href=(pdfWithoutChildren) rel="nofollow" target="_blank" title="Export page and child pages as a PDF"><span class="mt-icon-article-pdf"></span></a>
<a href=(pdfWithChildren) rel="nofollow" target="_blank" title="Export page and child pages as a PDF"><span class="mt-icon-book pdf"></span></a>;
//<span class="mt-icon-page-notification off"></span>
</div>
I am not a developer, hence not able to decode this. Can somebody help?
I am trying to print a PDF from an Mindtouch page and it not printing beyond 50 pages. I am getting the following error.
<error><exception>MindTouch.Deki.Exceptions.ExportPDFTooManyPagesException</exception><resource>System.API.Error.pdf_too_many_pages</resource><arguments count="2"><argument>54</argument><argument>50</argument></arguments><message>This PDF has 54 pages. The limit is 50 pages.</message><data><pagecount>54</pagecount><pagelimit>50</pagelimit></data></error>
This is the code that we are using to generate the PDF.
var pdfLink = xml.text(wiki.api(uri.build(site.api, ['pages', string.cast(page.id)])), '/page/contents.alt/@href');
var pdfWithChildren = pdfLink .. "?stylesheet=default&deep=true&showtoc=true";
var pdfWithoutChildren = pdfLink .. "?stylesheet=default&deep=false";
<div id="pdf-book">
//<a href=(pdfWithoutChildren) rel="nofollow" target="_blank" title="Export page and child pages as a PDF"><span class="mt-icon-article-pdf"></span></a>
<a href=(pdfWithChildren) rel="nofollow" target="_blank" title="Export page and child pages as a PDF"><span class="mt-icon-book pdf"></span></a>;
//<span class="mt-icon-page-notification off"></span>
</div>
I am not a developer, hence not able to decode this. Can somebody help?