Did I find the right examples for you? yes no

All Samples(64)  |  Call(41)  |  Derive(0)  |  Import(23)

src/p/d/pdfserver-0.6/pdfserver/util.py   pdfserver(Download)
        return ans
 
from pyPdf import PdfFileWriter, PdfFileReader
from pyPdf.pdf import PageObject
 
    * Adds watermark
    """
    output = PdfFileWriter()
 
    if overlay and isinstance(overlay, basestring):

src/f/r/free-cad-HEAD/trunk/src/Tools/offlinedoc/buildpdf.py   free-cad(Download)
            return 1
    try:
        from pyPdf import PdfFileReader,PdfFileWriter
    except:
        print "Error: Python-pypdf not installed, exiting."
def joinpdf():
    "creates one pdf file from several others, following order from startpage"
    from pyPdf import PdfFileReader,PdfFileWriter
    if VERBOSE: print "Building table of contents..."
    f = open(FOLDER+os.sep+INDEX+'.html')
    pages = re.findall('href="(.*?)"',html)
    pages.insert(1,INDEX+".html")
    result = PdfFileWriter()
    for p in pages:
        if exists(p[:-5]):

src/p/y/pypdfgui-HEAD/trunk/src/pyPdfGUI/pyPdfGUI.py   pypdfgui(Download)
        try:
            inpt     = pyPdf.PdfFileReader(file(inputWidget.get_text()))
            output   = pyPdf.PdfFileWriter()
            rng      = pyPdfUtils.Range(rangeWidget.get_text())
            rangeWidget.set_text(rng.getRange())
        # perform merge
        try:
            output = pyPdf.PdfFileWriter()
 
            # add pages
                if (i < numPages):
                    filename = outputWidget.get_text() + os.sep + prefix + str(i+1) + ".pdf"
                    output   = pyPdf.PdfFileWriter()
                    output.addPage(inpt.getPage(i))
                    outputStream = file(filename, "wb")
            indices  = rng.getIndices()
            angle    = angleWidget.get_value_as_int()
            output   = pyPdf.PdfFileWriter()
            for i in xrange(0, numPages):
                if (i in indices):
            rangeWidget.set_text(rng.getRange())
            indices  = rng.getIndices()
            output   = pyPdf.PdfFileWriter()
            for i in xrange(0, numPages):
                if (i in indices):

src/s/h/sh-scripts-HEAD/python/stapler.py   sh-scripts(Download)
 
import math
from pyPdf import PdfFileWriter, PdfFileReader
import sys
import re
 
	i = 0
	output = PdfFileWriter()
 
	for pdf in inputs:
	for pdf in inputs:
		for pagenr in range(pdf.getNumPages()):
			output = PdfFileWriter()
			output.addPage(pdf.getPage(pagenr))
			(name, ext) = splitext(files[i])
		sys.exit(2) # pdf file is no pdf file...
 
	output = PdfFileWriter()
	try:
		for pdf in filesandranges:
		sys.exit(2) # pdf file is no pdf file...
 
	output = PdfFileWriter()
 	try:
		for pdf in filesandranges:

src/s/c/scraptils-0.2.1/scraptils/tools/split.py   scraptils(Download)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# extracts single pages from pdfs.
 
from pyPdf import PdfFileWriter, PdfFileReader
import sys
 
output = PdfFileWriter()

src/o/p/openerp-server-5.0.0-3/bin/report/report_sxw.py   openerp-server(Download)
            if results:
                if results[0][1]=='pdf':
                    from pyPdf import PdfFileWriter, PdfFileReader
                    import cStringIO
                    output = PdfFileWriter()

src/y/t/yt-2.5/yt/visualization/plot_collection.py   yt(Download)
def concatenate_pdfs(output_fn, input_fns):
    from pyPdf import PdfFileWriter, PdfFileReader
    outfile = PdfFileWriter()
    for fn in input_fns:
        infile = PdfFileReader(open(fn, 'rb'))

src/p/d/pdfnup-0.4.1/pdfnup.py   pdfnup(Download)
 
try:
    from pyPdf import PdfFileWriter, PdfFileReader
    from pyPdf.pdf import PageObject, ImmutableSet, ContentStream
    from pyPdf.generic import \
 
    # create output and copy the first page n times
    output = PdfFileWriter()
    for i in range(n):
        output.addPage(page1)
    outr = outReader = PdfFileReader(buf)
    outPages = [outr.getPage(i) for i in range(outr.getNumPages())]
    output = PdfFileWriter()
 
    mapping = {}

src/p/y/pyrhmn-HEAD/pdf_split.py   pyrhmn(Download)
from pyPdf import PdfFileWriter, PdfFileReader
 
inputpdf = PdfFileReader(file("output.pdf", "rb"))
 
for i in xrange(inputpdf.numPages):
 output = PdfFileWriter()

src/s/t/stapler-0.3.0/staplelib/commands.py   stapler(Download)
import os
 
from pyPdf import PdfFileWriter, PdfFileReader
 
from . import CommandError, iohelper
        raise CommandError("Both input and output filenames are required.")
 
    output = PdfFileWriter()
    try:
        for input in filesandranges:
 
        for pageno in range(input.getNumPages()):
            output = PdfFileWriter()
            output.addPage(input.getPage(pageno))
 

  1 | 2 | 3 | 4  Next