MCPcopy Create free account
hub / github.com/pymupdf/PyMuPDF / ez_save

Method ez_save

src/__init__.py:4630–4677  ·  view source on GitHub ↗

Save PDF using some different defaults

(
            self,
            filename,
            garbage=3,
            clean=False,
            deflate=True,
            deflate_images=True,
            deflate_fonts=True,
            incremental=False,
            ascii=False,
            expand=False,
            linear=False,
            pretty=False,
            encryption=1,
            permissions=4095,
            owner_pw=None,
            user_pw=None,
            no_new_id=True,
            preserve_metadata=1,
            use_objstms=1,
            compression_effort=0,
            raise_on_repair=False,
            )

Source from the content-addressed store, hash-verified

4628 return rc
4629
4630 def ez_save(
4631 self,
4632 filename,
4633 garbage=3,
4634 clean=False,
4635 deflate=True,
4636 deflate_images=True,
4637 deflate_fonts=True,
4638 incremental=False,
4639 ascii=False,
4640 expand=False,
4641 linear=False,
4642 pretty=False,
4643 encryption=1,
4644 permissions=4095,
4645 owner_pw=None,
4646 user_pw=None,
4647 no_new_id=True,
4648 preserve_metadata=1,
4649 use_objstms=1,
4650 compression_effort=0,
4651 raise_on_repair=False,
4652 ):
4653 '''
4654 Save PDF using some different defaults
4655 '''
4656 return self.save(
4657 filename,
4658 garbage=garbage,
4659 clean=clean,
4660 deflate=deflate,
4661 deflate_images=deflate_images,
4662 deflate_fonts=deflate_fonts,
4663 incremental=incremental,
4664 ascii=ascii,
4665 expand=expand,
4666 linear=linear,
4667 pretty=pretty,
4668 encryption=encryption,
4669 permissions=permissions,
4670 owner_pw=owner_pw,
4671 user_pw=user_pw,
4672 no_new_id=no_new_id,
4673 preserve_metadata=preserve_metadata,
4674 use_objstms=use_objstms,
4675 compression_effort=compression_effort,
4676 raise_on_repair=raise_on_repair,
4677 )
4678
4679 def find_bookmark(self, bm):
4680 """Find new location after layouting a document."""

Callers 10

test_objectstream3Function · 0.80
test_2348Function · 0.80
test_3887Function · 0.80
test_4457Function · 0.80
test_techwriter_appendFunction · 0.80
test_3140Function · 0.80
code-printer.pyFile · 0.80
quickfox.pyFile · 0.80
showpdf-page.pyFile · 0.80

Calls 1

saveMethod · 0.95

Tested by 6

test_objectstream3Function · 0.64
test_2348Function · 0.64
test_3887Function · 0.64
test_4457Function · 0.64
test_techwriter_appendFunction · 0.64
test_3140Function · 0.64