mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Use Windows color profiles
This commit is contained in:
@ -79,8 +79,22 @@ PDFOperationResult PDFDocumentManipulator::assemble(const AssembledPages& pages)
|
||||
// manipulating a single document).
|
||||
if (!m_flags.testFlag(SingleDocument))
|
||||
{
|
||||
PDFInteger lastDocumentIndex = pages.front().documentIndex;
|
||||
std::vector<size_t> documentPartPageCounts = { 0 };
|
||||
|
||||
for (const AssembledPage& page : pages)
|
||||
{
|
||||
if (page.documentIndex == lastDocumentIndex)
|
||||
{
|
||||
++documentPartPageCounts.back();
|
||||
}
|
||||
else
|
||||
{
|
||||
documentPartPageCounts.push_back(1);
|
||||
lastDocumentIndex = page.documentIndex;
|
||||
}
|
||||
}
|
||||
|
||||
std::vector<size_t> documentPartPageCounts;
|
||||
documentBuilder.createDocumentParts(documentPartPageCounts);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user