-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Export to pdf #42
Comments
Please, give me some feedback of enhancements in this function.
Please, give me some feedback about this function. |
You don't connect the button with the functionality. How can you call the function, how can we use? Please, add the dependence in the list of dependencies. |
Do what you do to export in xml, json or csv but now you can export to pdf Yeah, I forgot to put reportlab in the dependences! I'll do soon. On Tue, May 13, 2014 at 2:22 PM, Daniel Pizetta notifications@github.comwrote:
|
But we have a print to pdf button! On Tue, May 13, 2014 at 2:35 PM, tiagocampo notifications@github.comwrote:
|
I didnt know that! hahaha On Tue, May 13, 2014 at 2:37 PM, Daniel Pizetta notifications@github.comwrote:
|
I forgot! The first page should be the cover, with title, authors' name and a description - that we can insert class name and professor, all centralized. Just pass those parameters for me in the function and see how to put the number of the pages. :) Good job :) |
I just need to know how to create separated pages, uaheuahe. Yes, these are all the parameters that we will need. On Tue, May 13, 2014 at 3:55 PM, Daniel Pizetta notifications@github.comwrote:
|
Prety ugly pdf generation, but its working.
I implemented the dialog, its working, it needs some adaptation from exportToPDF function to receive titlle, description and author's name. To see how you get this information, see ACCEPT function in pdf_dlg.py file. I'm writting all those parameters in preferences, so you just need to know the keys. I remove page numbers, its better always have. Font and size maybe not work at this moment because of the available ones in report lab, we need to talk. |
We need to think about functionality, the class concept is not correct at all. Its too confusing. |
http://www.reportlab.com/docs/platypus-example.py Please dont change until we talk about it. |
Actually, this code is more similar to ours: On Tue, May 20, 2014 at 8:07 PM, Daniel Pizetta notifications@github.comwrote:
|
More exemples... |
Yes, this example is what I use. Note the class definition! On Wed, May 21, 2014 at 5:43 PM, Daniel Pizetta notifications@github.comwrote:
|
Still need to remove the italic and fix the font size. |
Table of contents aren't showing the pages and the dots... |
I removed the page number from table of contents. And I dont understand what you mean with dots |
The table of contents used to be like this: 1.1 Abstract .................................. 12 And now is like that 1.1 Abstract Without page number and dots... On Fri, Jun 6, 2014 at 3:56 PM, tiagocampo notifications@github.com wrote:
|
In my computer is fine. Its shows the dots and the page number. Actually, i thought that the page number that you are talking where the On Fri, Jun 6, 2014 at 4:03 PM, Daniel Pizetta notifications@github.com
Tiago de Campos |
Another error: export with font Helvetica, use DIM option, size 12. Traceback (most recent call last): File "build/bdist.linux-i686/egg/sci_corpus/pdf_writer.py", line 216, in exportToPDF |
It generates this error in any configuration of font, size or dim/replace. Bus just after the second export. MAGIC> |
You cause this error when trying to change the font configuration right? If so, I think I know how to correct this error! On Fri, Jun 6, 2014 at 5:19 PM, Daniel Pizetta notifications@github.com
Tiago de Campos |
Now one can change the font name and size withou raising exceptions. Finally I think that export pdf is closed.
WHen you export a pdf file with the option dim marked, you need to see the parameter in preferences called 'replace where', if is inside markers it means that the text inside the markers need to be dim. Now it works oposite. I think you program it thinking on your example, and it works, but needs to be general and the parameter replace where is for that :) |
When we use 'replace' it works, but dim doesn't. |
I will look
|
The problem is: To make the text be bold, it has to begin with "< b >" and end with "< / b >". The function adjustSentence is not implemented to support different begin/end markers. I will not implement this functionality! This is not an error or a bug in the exportPDF module, you should open another issue to treat this problem. Thanks |
The function adjustSentece (from Ze) deal with any kind of markers, inside If you mark the option in pdf export to dim and it was marked replace So if it not working like that, this is a problem in export pdf. On Mon, Jun 16, 2014 at 10:59 AM, tiagocampo notifications@github.com
|
To make the text be bold, it has to begin with "< b >" and end with "< / b >" : You just need to change where you put this, and change the name from interface for BOLD not DIM, in this case. |
If you alheary have the solution in your mind, IMPLEMENT IT. I will not mess with adjustSentence. My part of the deal was to implement On Mon, Jun 16, 2014 at 11:09 AM, Daniel Pizetta notifications@github.com
Tiago de Campos |
I dont want to implement, I was explaining because I will implement all the On Mon, Jun 16, 2014 at 11:13 AM, tiagocampo notifications@github.com
|
Well, DIM means lack of brightness. How you imagined the implementation ? On Mon, Jun 16, 2014 at 11:30 AM, Daniel Pizetta notifications@github.com
Tiago de Campos |
python-reportlab
http://www.blog.pythonlibrary.org/2010/03/08/a-simple-step-by-step-reportlab-tutorial/
https://www.reportlab.com/docs/reportlab-userguide.pdf
The text was updated successfully, but these errors were encountered: