Skip to content
Discussion options

You must be logged in to vote

Thanks for the nice feedback!

Before a text extraction, you could temporarily switch to the desired layer using doc.set_layer_ui_config(number, action=0). This is what you would do using a supporting PDF viewer. Available configurations can be display by doc.layer_ui_configs().
The action parameter is 0 = set on (default), 1 = toggle on/off, 2 = set off.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by jase64
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants