From alain.aupeix at wanadoo.fr Thu Nov 3 06:02:35 2016 From: alain.aupeix at wanadoo.fr (Alain Aupeix) Date: Thu, 3 Nov 2016 11:02:35 +0100 Subject: [reportlab-users] Is it possible to insert mailto address in paragraphs Message-ID: <17ece626-4ea3-f315-2286-f70c1ea61470@wanadoo.fr> Hi, I use reportlab, and platypus Paragraph Is-it possible to insert mailto address in paragraph and how ? I have tried with , but it fails Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-10-21 05:54) | Hw.Gui 2.19-6 (2625) ------------------------------------------------------------------------ From robin at reportlab.com Thu Nov 3 06:19:50 2016 From: robin at reportlab.com (Robin Becker) Date: Thu, 3 Nov 2016 10:19:50 +0000 Subject: [reportlab-users] Is it possible to insert mailto address in paragraphs In-Reply-To: <17ece626-4ea3-f315-2286-f70c1ea61470@wanadoo.fr> References: <17ece626-4ea3-f315-2286-f70c1ea61470@wanadoo.fr> Message-ID: <7dd428bc-086f-055a-7493-223ccae35aca@chamonix.reportlab.co.uk> On 03/11/2016 10:02, Alain Aupeix wrote: > Hi, I use reportlab, and platypus Paragraph > > Is-it possible to insert mailto address in paragraph and how ? > > I have tried with , but it fails > Hi Alain, I just added this to our test_platypus_paragraphs.py test and it seems to work. > This should be a mailto link reportlab-users at lists2.reportlab.com. -- Robin Becker From robin at reportlab.com Fri Nov 4 05:26:43 2016 From: robin at reportlab.com (Robin Becker) Date: Fri, 4 Nov 2016 09:26:43 +0000 Subject: [reportlab-users] ReportLab & thread-safe issue - status? In-Reply-To: References: Message-ID: <5de01a0a-8dbd-5642-68ed-9a1f5ede1735@chamonix.reportlab.co.uk> Hi Yannick, I have answered questions on stackoverflow, but we prefer that any discussions take place in the reportlab users list. There is good advice to be had there from others than those that work directly on reportlab. We have stated many times that reportlab is not thread safe. There were issues in the paragraph parsing related to having just one parser at the module level, but in modern reportlab we use a separate parser for each paragraph. That said, we have made no real effort to create a ReportLab class that could encapsulate the whole state of a reportlab process. That means that there is only one set of globals and they are not protected by local storage or locks etc etc. The implication is that one thread could add a font and it wold then be available to other threads etc etc. My boss Andy Robinson has always said that document production should be handled as a task separated from the web. The document production of even simple documents takes significantly longer than a typical django request. We do use reportlab to produce documents with django, but in production we use a forking model so thread safety is not an issue. In addition for requests that take a long time we also detach a producer process to handle the document task which allows responsiveness and other benefits. even if the server process does not have a time out many browsers, proxies & gateways will so a document that takes more than 30 seconds will probably be created and then lost. -- Robin Becker On 01/11/2016 11:15, "Yannick Gosteli"@PETZI wrote: > Dear M. Becker, > > I would be happy to use ReportLab open-source for a project in our organization > "PETZI" (non-profit organization for music clubs & festivals in Switzerland). > I'm a bit worry about the "thread-safe" issue we can hear about in forums and > especially in Django documentation > . > > I've been on touch with Jens Lundstr?m about that who experiment this issue and > gave me your contact. > > Jens said me you identify the problem as in xmllib. Did you fix it now? > Do you have any status about the issue? > > Thx for your answer. > Best regards > Yannick Gosteli > > PS: If you have interest to answer directly to the community, I've posted a > question for a status on StackOverflow > . > > From alain.aupeix at wanadoo.fr Mon Nov 7 03:48:36 2016 From: alain.aupeix at wanadoo.fr (Alain Aupeix) Date: Mon, 7 Nov 2016 09:48:36 +0100 Subject: [reportlab-users] Is it possible to insert mailto address in paragraphs In-Reply-To: <7dd428bc-086f-055a-7493-223ccae35aca@chamonix.reportlab.co.uk> References: <17ece626-4ea3-f315-2286-f70c1ea61470@wanadoo.fr> <7dd428bc-086f-055a-7493-223ccae35aca@chamonix.reportlab.co.uk> Message-ID: <6d206795-7c6d-5b68-961b-18d41bd8ba87@wanadoo.fr> Le 03/11/2016 ? 11:19, Robin Becker a ?crit : > On 03/11/2016 10:02, Alain Aupeix wrote: >> Hi, I use reportlab, and platypus Paragraph >> >> Is-it possible to insert mailto address in paragraph and how ? >> >> I have tried with , but it fails >> > Hi Alain, > > I just added this to our test_platypus_paragraphs.py test and it seems > to work. > >> This should be a mailto link > href="mailto:reportlab-users at lists2.reportlab.com">> color="blue">reportlab-users at lists2.reportlab.com. Hi, thanks for the answer, it works fine. I can't explain why I failed ... Another question about links, always with same libraries. I generate pdf of emails, and I insert links for the attachments which are saved in the same folder than the pdf. I success when I give the complete path, but when I just givr the filename, if it doesn't fail when creating the pdf, the reader (evince) failed to open it, saying it doesn't found it. That works: cline="Pi?ce jointe (cliquable): "+''+filename+"" That fails: cline="Pi?ce jointe (cliquable): "+''+filename+"" Is-it a bug of reportlab, evince or a system feature ? Is there another way to do it ? It seems to be not very important, but my pdf and attachments are located in folders which are synchronized between computers and users using syncthing, and for users which aren't the creator of the pdf, the file links won't then work. Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-10-21 05:54) | Hw.Gui 2.19-6 (2625) ------------------------------------------------------------------------ From andy at reportlab.com Mon Nov 7 04:12:45 2016 From: andy at reportlab.com (Andy Robinson) Date: Mon, 7 Nov 2016 09:12:45 +0000 Subject: [reportlab-users] Is it possible to insert mailto address in paragraphs In-Reply-To: <6d206795-7c6d-5b68-961b-18d41bd8ba87@wanadoo.fr> References: <17ece626-4ea3-f315-2286-f70c1ea61470@wanadoo.fr> <7dd428bc-086f-055a-7493-223ccae35aca@chamonix.reportlab.co.uk> <6d206795-7c6d-5b68-961b-18d41bd8ba87@wanadoo.fr> Message-ID: On 7 November 2016 at 08:48, Alain Aupeix wrote: > cline="Pi?ce jointe (cliquable): "+' href="file://'+filename+'">'+filename+"" > Is-it a bug of reportlab, evince or a system feature ? > Is there another way to do it ? Hi Alain, My first reaction is that we just implement the PDF specification, and how PDF viewers behave is beyond our control. Have you tried this in any other PDF viewers on other platforms? Also, what happens when you make a tiny HTML page with these styles of links and click them? Does file://filename.ext work without a full path? - Andy From robin at reportlab.com Mon Nov 7 04:41:23 2016 From: robin at reportlab.com (Robin Becker) Date: Mon, 7 Nov 2016 09:41:23 +0000 Subject: [reportlab-users] Is it possible to insert mailto address in paragraphs In-Reply-To: <6d206795-7c6d-5b68-961b-18d41bd8ba87@wanadoo.fr> References: <17ece626-4ea3-f315-2286-f70c1ea61470@wanadoo.fr> <7dd428bc-086f-055a-7493-223ccae35aca@chamonix.reportlab.co.uk> <6d206795-7c6d-5b68-961b-18d41bd8ba87@wanadoo.fr> Message-ID: <06b0076a-998d-cdee-4501-8b3f489713c2@chamonix.reportlab.co.uk> On 07/11/2016 08:48, Alain Aupeix wrote: > Le 03/11/2016 ? 11:19, Robin Becker a ?crit : >> On 03/11/2016 10:02, Alain Aupeix wrote: >>> Hi, I use reportlab, and platypus Paragraph >.........paragraphs.py test and it seems to work. >> >>> This should be a mailto link >> href="mailto:reportlab-users at lists2.reportlab.com">>> color="blue">reportlab-users at lists2.reportlab.com. > Hi, thanks for the answer, it works fine. > I can't explain why I failed ... > > Another question about links, always with same libraries. > I generate pdf of emails, and I insert links for the attachments which are saved > in the same folder than the pdf. > I success when I give the complete path, but when I just givr the filename, if > it doesn't fail when creating the pdf, the reader (evince) failed to open it, > saying it doesn't found it. > > That works: >....... Hi Alain, I tried various versions of the file: link with or without the // etc etc. All were seen as links by Acrobat reader, but none resulted in it opening a file in my browser. The only successes I had were absolute paths. On windows the successful links always asked two permissions, one from acrobat reader and then another from windows. The unsuccessful attempst always asked just one question (from acrobat reader). I suspect it may be impossible to get the relative links to work. -- Robin Becker From alain.aupeix at wanadoo.fr Mon Nov 7 04:58:02 2016 From: alain.aupeix at wanadoo.fr (Alain Aupeix) Date: Mon, 7 Nov 2016 10:58:02 +0100 Subject: [reportlab-users] Is it possible to insert mailto address in paragraphs In-Reply-To: References: <17ece626-4ea3-f315-2286-f70c1ea61470@wanadoo.fr> <7dd428bc-086f-055a-7493-223ccae35aca@chamonix.reportlab.co.uk> <6d206795-7c6d-5b68-961b-18d41bd8ba87@wanadoo.fr> Message-ID: <0c51914a-192c-8898-262b-32e5cbf17735@wanadoo.fr> Le 07/11/2016 ? 10:12, Andy Robinson a ?crit : > On 7 November 2016 at 08:48, Alain Aupeix wrote: >> cline="Pi?ce jointe (cliquable): "+'> href="file://'+filename+'">'+filename+"" >> Is-it a bug of reportlab, evince or a system feature ? >> Is there another way to do it ? > Hi Alain, > > My first reaction is that we just implement the PDF specification, and > how PDF viewers behave is beyond our control. I understand ... > Have you tried this in any other PDF viewers on other platforms? I also tried with Acrobat Reader for Linux, no error here, but it doesn't open the attachment. No try under Windows, as my tool is dedicated to Linux, and I have no more Windows. > Also, what happens when > you make a tiny HTML page with these styles of links and click them? > Does file://filename.ext work without a full path? Yes, and I must say that filename variable in my code embedded file extension. I have tried another thing : open it with LibreOffice Draw, and I have created a document link, it works, but the tooltip when opening show a complete path. When I move the pdf and the attachment in another path, it doesn't work anymore an I have the error. So, I think it's not possible to just indicate the filename. Thanks A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-10-21 05:54) | Hw.Gui 2.19-6 (2625) ------------------------------------------------------------------------ From alain.aupeix at wanadoo.fr Mon Nov 7 06:35:25 2016 From: alain.aupeix at wanadoo.fr (Alain Aupeix) Date: Mon, 7 Nov 2016 12:35:25 +0100 Subject: [reportlab-users] Is it possible to insert mailto address in paragraphs In-Reply-To: <0c51914a-192c-8898-262b-32e5cbf17735@wanadoo.fr> References: <17ece626-4ea3-f315-2286-f70c1ea61470@wanadoo.fr> <7dd428bc-086f-055a-7493-223ccae35aca@chamonix.reportlab.co.uk> <6d206795-7c6d-5b68-961b-18d41bd8ba87@wanadoo.fr> <0c51914a-192c-8898-262b-32e5cbf17735@wanadoo.fr> Message-ID: Le 07/11/2016 ? 10:58, Alain Aupeix a ?crit : > Le 07/11/2016 ? 10:12, Andy Robinson a ?crit : > > So, I think it's not possible to just indicate the filename. I agree, all my tests reports such impossibility, but I have found a way to do it. Creating the pdf doesn't change, imbedding the complete path, but adding a symbolic link to the user folder does the trick. My user folder is alain My tool allows to create file links having another user name in the path, I tested it alain at Gramps-JujuLand:/home$ sudo ln -s -T alain gadel Opening the attachment works like a charm :) In fact, in real use where I want to deploy it, I have 2 computers, with one user for the first, and two users for the second computer. SyncThing syncs the same folder for each user : Documents, so, on the first computer, I must create two symbolic links : gadel and anne-sophie, and on the second computer a link named jacques. So each pdf attachment linked in each pdf created by one user will be openable by each other user. If I use my feature to replace the user folder name in the inifile of the two users of the second computer, replacing their user names by jacques, I only need to create a link named jacques on the second computer. Obviously, it only works if pathes (except user name) are identical. A+ > > Thanks > A+ -- ------------------------------------------------------------------------ Alain Aupeix http://jujuland.pagesperso-orange.fr/ http://pissobi-lacassagne.pagesperso-orange.fr/ ------------------------------------------------------------------------ U.buntu 12.04 | G.ramps 3.4.9-1 | H.arbour 3.2.0dev (2016-10-21 05:54) | Hw.Gui 2.19-6 (2625) ------------------------------------------------------------------------ From prabhakarmoka at gmail.com Tue Nov 15 04:30:14 2016 From: prabhakarmoka at gmail.com (Prabhakar Moka) Date: Tue, 15 Nov 2016 15:00:14 +0530 Subject: [reportlab-users] Help Message-ID: Hi, I am using Reportlab 2.7 with Python2.7.11 to generate *PDF file with page number and table of contents clickable*. I am able to create a pdf with clickable bookmarks in the table of contents (toc) and created a pdf with "x of y" page numbering also. Here my problem is bookmarkpage(key) appears to break when I try to do both. Please check attached "clickcheck.py" file code which I am using. Please help me to resolve this. Thanks, Prabhakar -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- from reportlab.lib.styles import ParagraphStyle as PS from reportlab.platypus import PageBreak from reportlab.platypus.paragraph import Paragraph from reportlab.platypus.doctemplate import PageTemplate, BaseDocTemplate from reportlab.platypus.tableofcontents import TableOfContents from reportlab.platypus.frames import Frame from reportlab.lib.units import cm from reportlab.pdfgen import canvas from reportlab.lib.pagesizes import LETTER class FooterCanvas(canvas.Canvas): def __init__(self, *args, **kwargs): canvas.Canvas.__init__(self, *args, **kwargs) self.pages = [] def showPage(self): self.pages.append(dict(self.__dict__)) self._startPage() def save(self): page_count = len(self.pages) for page in self.pages: self.__dict__.update(page) self.draw_canvas(page_count) canvas.Canvas.showPage(self) canvas.Canvas.save(self) def draw_canvas(self, page_count): page = "Page %s of %s" % (self._pageNumber, page_count) x = 128 self.saveState() self.setStrokeColorRGB(0, 0, 0) self.setLineWidth(0.5) self.line(66, 78, LETTER[0] - 66, 78) self.setFont('Times-Roman', 10) self.drawString(LETTER[0]-x, 65, page) self.restoreState() class MyDocTemplate(BaseDocTemplate): def __init__(self, filename, **kw): self.allowSplitting = 0 apply(BaseDocTemplate.__init__, (self, filename), kw) template = PageTemplate('normal', [Frame(2.5*cm, 2.5*cm, 15*cm, 25*cm, id='F1')]) self.addPageTemplates(template) def afterFlowable(self, flowable): "Registers TOC entries." if flowable.__class__.__name__ == 'Paragraph': text = flowable.getPlainText() style = flowable.style.name if style == 'Heading1': level = 0 elif style == 'Heading2': level = 1 else: return E = [level, text, self.page] #if we have a bookmark name append that to our notify data bn = getattr(flowable,'_bookmarkName',None) if bn is not None: E.append(bn) self.notify('TOCEntry', tuple(E)) centered = PS(name = 'centered', fontSize = 30,leading = 16, alignment = 1,spaceAfter = 20) h1 = PS(name = 'Heading1',fontSize = 14,leading = 16) h2 = PS(name = 'Heading2',fontSize = 12,leading = 14) # Build story. story = [] # Create an instance of TableOfContents. Override the level styles (optional) # and add the object to the story toc = TableOfContents() toc.levelStyles = [ PS(fontName='Times-Bold', fontSize=20, name='TOCHeading1', leftIndent=20, firstLineIndent=-20, spaceBefore=10, leading=16), PS(fontSize=18, name='TOCHeading2', leftIndent=40, firstLineIndent=-20, spaceBefore=5, leading=12), ] story.append(Paragraph('Table of contents', centered)) story.append(toc) #this function makes our headings def doHeading(text,sty): from hashlib import sha1 #create bookmarkname bn=sha1(text+sty.name).hexdigest() #modify paragraph text to include an anchor point with name bn h=Paragraph(text+'' % bn,sty) #store the bookmark name on the flowable so afterFlowable can see this h._bookmarkName=bn story.append(h) #story.append(Paragraph('Table of contents', centered)) story.append(PageBreak()) doHeading('First heading', h1) story.append(Paragraph('Text in first heading', PS('body'))) doHeading('First sub heading', h2) story.append(Paragraph('Text in first sub heading', PS('body'))) story.append(PageBreak()) doHeading('Second sub heading', h2) story.append(Paragraph('Text in second sub heading', PS('body'))) story.append(PageBreak()) doHeading('Last heading', h1) story.append(Paragraph('Text in last heading', PS('body'))) doc = MyDocTemplate('mintoc.pdf') doc.multiBuild(story, canvasmaker = FooterCanvas) From prabhakarmoka at gmail.com Tue Nov 22 09:31:36 2016 From: prabhakarmoka at gmail.com (Prabhakar Moka) Date: Tue, 22 Nov 2016 20:01:36 +0530 Subject: [reportlab-users] reportlab-users Digest, Vol 157, Issue 4 In-Reply-To: References: Message-ID: Hi, Could some one guide me on this issue? Regards, Prabhakar On Wed, Nov 16, 2016 at 12:11 PM, < reportlab-users-request at lists2.reportlab.com> wrote: > Send reportlab-users mailing list submissions to > reportlab-users at lists2.reportlab.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://pairlist2.pair.net/mailman/listinfo/reportlab-users > or, via email, send a message with subject or body 'help' to > reportlab-users-request at lists2.reportlab.com > > You can reach the person managing the list at > reportlab-users-owner at lists2.reportlab.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of reportlab-users digest..." > > > Today's Topics: > > 1. Help (Prabhakar Moka) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Tue, 15 Nov 2016 15:00:14 +0530 > From: Prabhakar Moka > To: reportlab-users at lists2.reportlab.com > Subject: [reportlab-users] Help > Message-ID: > gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi, > > I am using Reportlab 2.7 with Python2.7.11 to generate *PDF file with page > number and table of contents clickable*. > > I am able to create a pdf with clickable bookmarks in the table of > contents (toc) and created a pdf with "x of y" page numbering also. > > Here my problem is bookmarkpage(key) appears to break when I try to do > both. Please check attached "clickcheck.py" file code which I am using. > > Please help me to resolve this. > > Thanks, > Prabhakar > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: attachments/20161115/8ae18f0f/attachment-0001.html> > -------------- next part -------------- > from reportlab.lib.styles import ParagraphStyle as PS > from reportlab.platypus import PageBreak > from reportlab.platypus.paragraph import Paragraph > from reportlab.platypus.doctemplate import PageTemplate, BaseDocTemplate > from reportlab.platypus.tableofcontents import TableOfContents > from reportlab.platypus.frames import Frame > from reportlab.lib.units import cm > from reportlab.pdfgen import canvas > from reportlab.lib.pagesizes import LETTER > > class FooterCanvas(canvas.Canvas): > > def __init__(self, *args, **kwargs): > canvas.Canvas.__init__(self, *args, **kwargs) > self.pages = [] > > def showPage(self): > self.pages.append(dict(self.__dict__)) > self._startPage() > > def save(self): > page_count = len(self.pages) > for page in self.pages: > self.__dict__.update(page) > self.draw_canvas(page_count) > canvas.Canvas.showPage(self) > canvas.Canvas.save(self) > > def draw_canvas(self, page_count): > page = "Page %s of %s" % (self._pageNumber, page_count) > x = 128 > self.saveState() > self.setStrokeColorRGB(0, 0, 0) > self.setLineWidth(0.5) > self.line(66, 78, LETTER[0] - 66, 78) > self.setFont('Times-Roman', 10) > self.drawString(LETTER[0]-x, 65, page) > self.restoreState() > > class MyDocTemplate(BaseDocTemplate): > def __init__(self, filename, **kw): > self.allowSplitting = 0 > apply(BaseDocTemplate.__init__, (self, filename), kw) > template = PageTemplate('normal', [Frame(2.5*cm, 2.5*cm, 15*cm, > 25*cm, id='F1')]) > self.addPageTemplates(template) > > > > def afterFlowable(self, flowable): > "Registers TOC entries." > if flowable.__class__.__name__ == 'Paragraph': > text = flowable.getPlainText() > style = flowable.style.name > if style == 'Heading1': > level = 0 > elif style == 'Heading2': > level = 1 > else: > return > E = [level, text, self.page] > #if we have a bookmark name append that to our notify data > bn = getattr(flowable,'_bookmarkName',None) > if bn is not None: E.append(bn) > self.notify('TOCEntry', tuple(E)) > > centered = PS(name = 'centered', fontSize = 30,leading = 16, alignment = > 1,spaceAfter = 20) > > h1 = PS(name = 'Heading1',fontSize = 14,leading = 16) > h2 = PS(name = 'Heading2',fontSize = 12,leading = 14) > > > # Build story. > story = [] > > # Create an instance of TableOfContents. Override the level styles > (optional) > # and add the object to the story > > toc = TableOfContents() > toc.levelStyles = [ > PS(fontName='Times-Bold', fontSize=20, name='TOCHeading1', > leftIndent=20, firstLineIndent=-20, spaceBefore=10, leading=16), > PS(fontSize=18, name='TOCHeading2', leftIndent=40, > firstLineIndent=-20, spaceBefore=5, leading=12), > ] > story.append(Paragraph('Table of contents', centered)) > story.append(toc) > > > #this function makes our headings > def doHeading(text,sty): > from hashlib import sha1 > #create bookmarkname > bn=sha1(text+sty.name).hexdigest() > #modify paragraph text to include an anchor point with name bn > h=Paragraph(text+'' % bn,sty) > #store the bookmark name on the flowable so afterFlowable can see this > h._bookmarkName=bn > story.append(h) > > #story.append(Paragraph('Table of contents', centered)) > story.append(PageBreak()) > doHeading('First heading', h1) > story.append(Paragraph('Text in first heading', PS('body'))) > doHeading('First sub heading', h2) > story.append(Paragraph('Text in first sub heading', PS('body'))) > story.append(PageBreak()) > doHeading('Second sub heading', h2) > story.append(Paragraph('Text in second sub heading', PS('body'))) > story.append(PageBreak()) > doHeading('Last heading', h1) > story.append(Paragraph('Text in last heading', PS('body'))) > doc = MyDocTemplate('mintoc.pdf') > doc.multiBuild(story, canvasmaker = FooterCanvas) > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > reportlab-users mailing list > reportlab-users at lists2.reportlab.com > https://pairlist2.pair.net/mailman/listinfo/reportlab-users > > > ------------------------------ > > End of reportlab-users Digest, Vol 157, Issue 4 > *********************************************** > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin at reportlab.com Wed Nov 23 04:04:44 2016 From: robin at reportlab.com (Robin Becker) Date: Wed, 23 Nov 2016 09:04:44 +0000 Subject: [reportlab-users] Help In-Reply-To: References: Message-ID: Hi Prabhakar, I will try to take a look at this over the weekend. -- Robin Becker On 15/11/2016 09:30, Prabhakar Moka wrote: > Hi, > > I am using Reportlab 2.7 with Python2.7.11 to generate *PDF file with page > number and table of contents clickable*. > > I am able to create a pdf with clickable bookmarks in the table of > contents (toc) and created a pdf with "x of y" page numbering also. > > Here my problem is bookmarkpage(key) appears to break when I try to do > both. Please check attached "clickcheck.py" file code which I am using. > > Please help me to resolve this. > > Thanks, > Prabhakar > > > > _______________________________________________ > reportlab-users mailing list > reportlab-users at lists2.reportlab.com > https://pairlist2.pair.net/mailman/listinfo/reportlab-users > From prabhakarmoka at gmail.com Wed Nov 23 09:32:09 2016 From: prabhakarmoka at gmail.com (Prabhakar Moka) Date: Wed, 23 Nov 2016 20:02:09 +0530 Subject: [reportlab-users] Help In-Reply-To: References: Message-ID: Thanks Robin. On 23 Nov 2016 14:34, "Robin Becker" wrote: > Hi Prabhakar, > > I will try to take a look at this over the weekend. > -- > Robin Becker > On 15/11/2016 09:30, Prabhakar Moka wrote: > >> Hi, >> >> I am using Reportlab 2.7 with Python2.7.11 to generate *PDF file with page >> number and table of contents clickable*. >> >> I am able to create a pdf with clickable bookmarks in the table of >> contents (toc) and created a pdf with "x of y" page numbering also. >> >> Here my problem is bookmarkpage(key) appears to break when I try to do >> both. Please check attached "clickcheck.py" file code which I am using. >> >> Please help me to resolve this. >> >> Thanks, >> Prabhakar >> >> >> >> _______________________________________________ >> reportlab-users mailing list >> reportlab-users at lists2.reportlab.com >> https://pairlist2.pair.net/mailman/listinfo/reportlab-users >> >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at monicol.co.uk Wed Nov 23 12:07:49 2016 From: peter at monicol.co.uk (Peter Mott) Date: Wed, 23 Nov 2016 17:07:49 +0000 Subject: [reportlab-users] unsubscribe Message-ID: From adrian.klaver at aklaver.com Wed Nov 23 12:16:56 2016 From: adrian.klaver at aklaver.com (Adrian Klaver) Date: Wed, 23 Nov 2016 09:16:56 -0800 Subject: [reportlab-users] unsubscribe In-Reply-To: References: Message-ID: <4fc63801-59a7-abfe-cc85-72f1fc198e9a@aklaver.com> On 11/23/2016 09:07 AM, Peter Mott wrote: To unsubscribe use the link: https://pairlist2.pair.net/mailman/listinfo/reportlab-users > > _______________________________________________ > reportlab-users mailing list > reportlab-users at lists2.reportlab.com > https://pairlist2.pair.net/mailman/listinfo/reportlab-users -- Adrian Klaver adrian.klaver at aklaver.com