Foxit PDF SDK
|
Public Member Functions | |
def | LayerContext (other) |
Constructor, with another layer context object. More... | |
def | CopyStates (source_context) |
Copy states from another layer context. More... | |
def | GetDocument () |
Get the related PDF document. More... | |
def | GetUsageType () |
Get the layer usage type for rendering. More... | |
def | IsEmpty () |
Check whether current object is empty or not. More... | |
def | IsVisible (layer) |
Check if a specified layer node is visible in current layer context. More... | |
def | MergeStates (source_context) |
Merge states from another layer context. More... | |
def | Reset () |
Reset current layer context, back to the initialized state. More... | |
def | SetVisible (layer, is_visible) |
Set the visibility of a specified layer node in current layer context. More... | |
Static Public Attributes | |
e_UsageDesign = _fsdk.LayerContext_e_UsageDesign | |
Use for representing a document designer's structural organization of artwork. | |
e_UsageExport = _fsdk.LayerContext_e_UsageExport | |
Use for exporting. | |
e_UsagePrint = _fsdk.LayerContext_e_UsagePrint | |
Use for printing. | |
e_UsageZoom = _fsdk.LayerContext_e_UsageZoom | |
Use for zooming. | |
This class represents a layer context for rendering. If user wants to render layers, please construct a layer context object first and then set it to a FoxitPDFSDKPython3.Renderer object by function FoxitPDFSDKPython3.Renderer.SetLayerContext .
def FoxitPDFSDKPython3.LayerContext.LayerContext | ( | other | ) |
Constructor, with another layer context object.
[in] | other | Another layer context object. |
def FoxitPDFSDKPython3.LayerContext.CopyStates | ( | source_context | ) |
Copy states from another layer context.
[in] | source_context | The source layer context, whose state will be copied to current layer context. |
def FoxitPDFSDKPython3.LayerContext.GetDocument | ( | ) |
Get the related PDF document.
def FoxitPDFSDKPython3.LayerContext.GetUsageType | ( | ) |
Get the layer usage type for rendering.
def FoxitPDFSDKPython3.LayerContext.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
def FoxitPDFSDKPython3.LayerContext.IsVisible | ( | layer | ) |
Check if a specified layer node is visible in current layer context.
[in] | layer | A layer node. It should belong to the same PDF document which is related to current layer context. |
def FoxitPDFSDKPython3.LayerContext.MergeStates | ( | source_context | ) |
Merge states from another layer context.
[in] | source_context | The source layer context, whose state will be merged to current layer context. |
def FoxitPDFSDKPython3.LayerContext.Reset | ( | ) |
Reset current layer context, back to the initialized state.
def FoxitPDFSDKPython3.LayerContext.SetVisible | ( | layer, | |
is_visible | |||
) |
Set the visibility of a specified layer node in current layer context.
[in] | layer | A layer node. It should belong to the same PDF document which is related to current layer context. |
[in] | is_visible | true means visible, and false means invisible. |