Commit 5bf7342d authored by Oleg Korshul's avatar Oleg Korshul

new feature: print only one first page (server)

parent f0772eaa
......@@ -6440,9 +6440,11 @@ background-repeat: no-repeat;\
return this.WordControl.m_oDrawingDocument.SlidesCount;
};
window["asc_docs_api"].prototype["asc_nativeGetPDF"] = function()
window["asc_docs_api"].prototype["asc_nativeGetPDF"] = function(_param)
{
var pagescount = this["asc_nativePrintPagesCount"]();
if (0x0100 & _param)
pagescount = 1;
var _renderer = new AscCommon.CDocumentRenderer();
_renderer.VectorMemoryForPrint = new AscCommon.CMemory();
......
......@@ -8377,9 +8377,11 @@ background-repeat: no-repeat;\
return this.WordControl.m_oDrawingDocument.m_lPagesCount;
};
window["asc_docs_api"].prototype["asc_nativeGetPDF"] = function()
window["asc_docs_api"].prototype["asc_nativeGetPDF"] = function(_param)
{
var pagescount = this["asc_nativePrintPagesCount"]();
if (0x0100 & _param)
pagescount = 1;
var _renderer = new AscCommon.CDocumentRenderer();
_renderer.VectorMemoryForPrint = new AscCommon.CMemory();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment