From Build 2024-06-28 Build 3.7.42.01
To add block information to a new layer, follow these steps:
- For each block, add a status command with the value
layer="Layer Name"
. - Double quotes (
""
) are required around the layer name if it contains spaces. If the layer name does not contain spaces, the quotes can be omitted.
Valid Examples
layer="Layer Name"
layer=Layer01
layer="NoSpaceInName"
Invalid Example
layer=Layer Name
In this case, the layer name will be interpreted as just ‘Layer’, and ‘Name’ will be ignored.
Limitation
PDFLib can only write to newly created layers. It cannot write to existing layers. If a layer name specified in the status command already exists in the PDF file, PDFLib will create a new layer with the same name.
You can have multiple blocks in a layer. Blocks with the same layer name will reuse the same layer.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article