🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.python
Article #27345

pdf w pygtk

#27345
From: zigi
Date: Mon, 08 Mar 2010 16:11
23 lines
1886 bytes
Witam,
piszę prosty program do dodawania i usuwania stron w pdf  korzystam z
pyPdf i pygtk i nie bardzo  wiem do której wigiety w pygtk zaladować
wczytany pdf

to jest część kodu z mdułu pyPdf.

def __init__(self, doc):
        self.output = PdfFileWriter()
        self.document = PdfFileReader(file(doc, "rb"))
        return

    def ReturnPdf(self):
        return self.document

    def WriterPdf(self, insert):
        self.output.addPage(self.document.getPage(0))
        return self.output.write(isert)


http://pybrary.net/pyPdf/

Proszę o pomoc.
Technical Details
Message-ID: <99dceefa-84d0-4476-99c4-9460d8358051@a18g2000yqc.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!a18g2000yqc.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!news.nask.pl!news.nask.org.pl!newsfeed00.sul.t-online.de!t-online.de!border2.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!a18g2000yqc.googlegroups.com!not-for-mail
From: zigi <cezar4846@gmail.com>
Newsgroups: pl.comp.lang.python
Subject: pdf w pygtk
Date: Mon, 8 Mar 2010 08:11:39 -0800 (PST)
Organization: http://groups.google.com
Lines: 24
Message-ID: <99dceefa-84d0-4476-99c4-9460d8358051@a18g2000yqc.googlegroups.com>
NNTP-Posting-Host: 217.67.208.92
Mime-Version: 1.0
X-Trace: posting.google.com 1268064699 723 127.0.0.1 (8 Mar 2010 16:11:39 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Mon, 8 Mar 2010 16:11:39 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: a18g2000yqc.googlegroups.com; posting-host=217.67.208.92;  posting-account=KO8BxgoAAACCbIevmmXkvGNLzCGU-P0N
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;  Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR  3.0.04506.648; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; Promedica24.pl;  OfficeLiveConnector.1.3; OfficeLivePatch.0.0),gzip(gfe),gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit