mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-02-10 18:05:41 +08:00
Fix bug 74364
This commit is contained in:
@ -1555,6 +1555,7 @@ bool CPdfEditor::SplitPages(const int* arrPageIndex, unsigned int unLength, PDFD
|
||||
PDFDoc* pPDFDocument = _pDoc;
|
||||
XRef* xref = pPDFDocument->getXRef();
|
||||
PdfWriter::CDocument* pDoc = m_pWriter->GetDocument();
|
||||
int nPagesBefore = m_pReader->GetNumPagesBefore(pPDFDocument);
|
||||
|
||||
if (unLength == 0)
|
||||
unLength = pPDFDocument->getNumPages();
|
||||
@ -1570,7 +1571,7 @@ bool CPdfEditor::SplitPages(const int* arrPageIndex, unsigned int unLength, PDFD
|
||||
PdfWriter::CPage* pPage = new PdfWriter::CPage(pDoc);
|
||||
pDoc->AddObject(pPage);
|
||||
pDoc->AddPage(pDoc->GetPagesCount(), pPage);
|
||||
pDoc->AddEditPage(pPage, arrPageIndex ? arrPageIndex[i] : i);
|
||||
pDoc->AddEditPage(pPage, nPagesBefore + (arrPageIndex ? arrPageIndex[i] : i));
|
||||
|
||||
// Получение объекта страницы
|
||||
Object pageRefObj, pageObj;
|
||||
|
||||
Reference in New Issue
Block a user