2563,8 → 2563,9 |
|
void PDFLibCore::PDF_Begin_Layers() |
{ |
if (Options.exportsLayers()) |
{ |
if (!Options.exportsLayers()) |
return; |
|
ScLayer ll; |
PdfOCGInfo ocg; |
ll.isPrintable = false; |
2601,7 → 2602,6 |
writer.endObj(optionalContent); |
} |
} |
} |
|
bool PDFLibCore::PDF_TemplatePage(const ScPage* pag, bool) |
{ |
11213,15 → 11213,15 |
ScLayer ll; |
ll.isPrintable = false; |
ll.ID = 0; |
for (int la = 0; la < doc.Layers.count(); ++la) |
for (int i = 0; i < doc.Layers.count(); ++i) |
{ |
doc.Layers.levelToLayer(ll, la); |
doc.Layers.levelToLayer(ll, i); |
if (ll.isEditable) |
lay.prepend(Pdf::toObjRef(OCGEntries[ll.Name].ObjNum) + " "); |
} |
for (int layc = 0; layc < lay.count(); ++layc) |
for (int i = 0; i < lay.count(); ++i) |
{ |
PutDoc(lay[layc]); |
PutDoc(lay[i]); |
} |
PutDoc("]\n"); |
if (Options.Version == PDFVersion::PDF_X4) |