1. 程式人生 > >實用 | 手把手教你用Python分割與合併PDF

實用 | 手把手教你用Python分割與合併PDF

def merge(self, position, fileobj, bookmark=None, pages=None, import_bookmarks=True):        """        Merges the pages from the given file into the output file at the        specified page number.          :param int position: The *page number* to insert this file. File will            be inserted after the given number.          :param fileobj: A File Object or an object that supports the standard read            and seek methods similar to a File Object. Could also be a            string representing a path to a PDF file.          :param str bookmark: Optionally, you may specify a bookmark to be applied at            the beginning of the included file by supplying the text of the bookmark.          :param pages: can be a :ref:`Page Range <page-range>` or a ``(start, stop[, step])`` tuple            to merge only the specified range of pages from the source            document into the output document.          :param bool import_bookmarks: You may prevent the source document's bookmarks            from being imported by specifying this as ``False``.        """