Skip to content
Discussion options

You must be logged in to vote

A page can have multiple /Contents objects. So the definition in the page object either looks something like /Contents 7 0 R or /Contents [7 0 R 8 0 R ...]. If you execute page.clean_contents(), multiple objects will be conctenated, the result replacing the previous lot.

So much for some background. page.clean_contents() does very much more than this concatenation: it also cleans and standardizes the syntax plus it makes sure that all resources used in the contents are in 1:1 correspondence with the objects named in the page's definition under /Resources. This applies to images, fonts and several more.

I recommend you first execute page.clean_contents(). Then page.get_contents() will deli…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@roylo97
Comment options

@JorjMcKie
Comment options

@roylo97
Comment options

@JorjMcKie
Comment options

Answer selected by JorjMcKie
@roylo97
Comment options

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