Skip to content

Inserted images don't show up in Adobe Illustrator #784

Discussion options

You must be logged in to vote

When I set overlay=False all the qr codes get put below the template.

Of course - just an idea. Thought the template might be transparent. Bad luck then.

>>> import fitz
>>> help(fitz.Document.set_layer)
Help on function set_layer in module fitz.fitz:

set_layer(self, config, basestate=None, on=None, off=None, rbgroups=None)
    Set the ON, OFF, RBGroups PDF keys of an OC layer.

>>> 

What is your version?

Anyway, to remove the optional content instructions, use the following snippet:

# after finishing your image inserts
page.cleanContents()  # clean the syntax, join multiple contetns objects
xref = page.getContents()[0]  # get xref of resulting single object
cont_lines = doc.xrefStream(x…

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@vs-777
Comment options

Comment options

You must be logged in to vote
5 replies
@vs-777
Comment options

@JorjMcKie
Comment options

@JorjMcKie
Comment options

@vs-777
Comment options

@vs-777
Comment options

Answer selected by JorjMcKie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants