Coder Social home page Coder Social logo

Export to pdf about sci-corpus HOT 32 CLOSED

zericardo avatar zericardo commented on June 23, 2024
Export to pdf

from sci-corpus.

Comments (32)

tiagocampo avatar tiagocampo commented on June 23, 2024

Please, give me some feedback about this function.

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

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.

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

Do what you do to export in xml, json or csv but now you can export to pdf
as well.

Yeah, I forgot to put reportlab in the dependences! I'll do soon.

On Tue, May 13, 2014 at 2:22 PM, Daniel Pizetta [email protected]:

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.


Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-42985083
.

                  Tiago de Campos
  ----------------------------------------------------------

                Skype: tiagocampo1
  https://www.facebook.com/tiagodecampo

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

But we have a print to pdf button!

On Tue, May 13, 2014 at 2:35 PM, tiagocampo [email protected]:

Do what you do to export in xml, json or csv but now you can export to pdf
as well.

Yeah, I forgot to put reportlab in the dependences! I'll do soon.

On Tue, May 13, 2014 at 2:22 PM, Daniel Pizetta [email protected]:

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.

Reply to this email directly or view it on GitHub<
https://github.com/zericardo182/sci-corpus/issues/42#issuecomment-42985083>

.

Tiago de Campos

Skype: tiagocampo1
https://www.facebook.com/tiagodecampo

Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-42986788
.

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

I didnt know that! hahaha

On Tue, May 13, 2014 at 2:37 PM, Daniel Pizetta [email protected]:

But we have a print to pdf button!

On Tue, May 13, 2014 at 2:35 PM, tiagocampo <[email protected]

wrote:

Do what you do to export in xml, json or csv but now you can export to
pdf
as well.

Yeah, I forgot to put reportlab in the dependences! I'll do soon.

On Tue, May 13, 2014 at 2:22 PM, Daniel Pizetta <
[email protected]>wrote:

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.

Reply to this email directly or view it on GitHub<

#42 (comment)

.

Tiago de Campos

Skype: tiagocampo1
https://www.facebook.com/tiagodecampo

Reply to this email directly or view it on GitHub<
#42 (comment)

.


Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-42987001
.

                  Tiago de Campos
  ----------------------------------------------------------

                Skype: tiagocampo1
  https://www.facebook.com/tiagodecampo

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

Very nice :) May we can use something like this...just past as a parameter this variables in pdf function.

And we need to add a little image, sci corpus logo on footer.

screenshot from 2014-05-13 15 47 58

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

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 :)

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

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 [email protected]:

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 :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-42996918
.

                  Tiago de Campos
  ----------------------------------------------------------

                Skype: tiagocampo1
  https://www.facebook.com/tiagodecampo

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

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.

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

We need to think about functionality, the class concept is not correct at all. Its too confusing.

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

http://www.reportlab.com/docs/platypus-example.py

Please dont change until we talk about it.

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

Actually, this code is more similar to ours:
http://code.activestate.com/recipes/123612-basedoctemplate-with-2-pagetemplate/

On Tue, May 20, 2014 at 8:07 PM, Daniel Pizetta [email protected]:

http://www.reportlab.com/docs/platypus-example.py

Please dont change until we talk about it.


Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-43694706
.

                  Tiago de Campos
  ----------------------------------------------------------

                Skype: tiagocampo1
  https://www.facebook.com/tiagodecampo

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

More exemples...
http://www.reportlab.com/snippets/13/

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

Yes, this example is what I use. Note the class definition!

On Wed, May 21, 2014 at 5:43 PM, Daniel Pizetta [email protected]:

More exemples...
http://www.reportlab.com/snippets/13/


Reply to this email directly or view it on GitHubhttps://github.com//issues/42#issuecomment-43811279
.

                  Tiago de Campos
  ----------------------------------------------------------

                Skype: tiagocampo1
  https://www.facebook.com/tiagodecampo

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

Still need to remove the italic and fix the font size.

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

Table of contents aren't showing the pages and the dots...

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

I removed the page number from table of contents. And I dont understand what you mean with dots

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

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 [email protected] wrote:

I removed the page number from table of contents. And I dont understand
what you mean with dots

Reply to this email directly or view it on GitHub
#42 (comment)
.

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

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
number in the bottom left corner.

On Fri, Jun 6, 2014 at 4:03 PM, Daniel Pizetta [email protected]
wrote:

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 [email protected]
wrote:

I removed the page number from table of contents. And I dont understand
what you mean with dots

Reply to this email directly or view it on GitHub
<
#42 (comment)

.


Reply to this email directly or view it on GitHub
#42 (comment)
.


Tiago de Campos

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

I just test the TOC and its working!

toc

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

Another error: export with font Helvetica, use DIM option, size 12.

Traceback (most recent call last):
File "build/bdist.linux-i686/egg/sci_corpus/sci_corpus_main.py", line 829, in printFile

File "build/bdist.linux-i686/egg/sci_corpus/pdf_writer.py", line 216, in exportToPDF
File "/usr/lib/python2.7/dist-packages/reportlab/lib/styles.py", line 209, in add
raise KeyError("Style '%s' already defined in stylesheet" % key)
KeyError: "Style 'phrase_base' already defined in stylesheet"

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

It generates this error in any configuration of font, size or dim/replace. Bus just after the second export.

MAGIC>

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

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 [email protected]
wrote:

It generates this error in any configuration of font, size or dim/replace.
Bus just after the second export.

MAGIC>


Reply to this email directly or view it on GitHub
#42 (comment)
.


Tiago de Campos

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

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 :)

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

When we use 'replace' it works, but dim doesn't.

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

I will look
Em 15/06/2014 15:05, "Daniel Pizetta" [email protected] escreveu:

When we use 'replace' it works, but dim doesn't.


Reply to this email directly or view it on GitHub
#42 (comment)
.

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

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

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

The function adjustSentece (from Ze) deal with any kind of markers, inside
or outside.

If you mark the option in pdf export to dim and it was marked replace
inside markers must be dimmed the part outside, because dim has an opposite
functionality from 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 [email protected]
wrote:

Closed #42 #42.

Reply to this email directly or view it on GitHub
#42 (comment).

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

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.

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

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
the exporttoPDF module. This module is working WITHOUT BUGS. The miss
behavior are in the interface with another function that is not my
jurisdiction.

On Mon, Jun 16, 2014 at 11:09 AM, Daniel Pizetta [email protected]
wrote:

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.


Reply to this email directly or view it on GitHub
#42 (comment)
.


Tiago de Campos

from sci-corpus.

dpizetta avatar dpizetta commented on June 23, 2024

I dont want to implement, I was explaining because I will implement all the
other ones that I put. We need to divide the tasks. And since the beggining
it was DIM not BOLD.

On Mon, Jun 16, 2014 at 11:13 AM, tiagocampo [email protected]
wrote:

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
the exporttoPDF module. This module is working WITHOUT BUGS. The miss
behavior are in the interface with another function that is not my
jurisdiction.

On Mon, Jun 16, 2014 at 11:09 AM, Daniel Pizetta [email protected]

wrote:

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.

Reply to this email directly or view it on GitHub
<
https://github.com/zericardo182/sci-corpus/issues/42#issuecomment-46182607>

.


Tiago de Campos

Reply to this email directly or view it on GitHub
#42 (comment)
.

from sci-corpus.

tiagocampo avatar tiagocampo commented on June 23, 2024

Well,

DIM means lack of brightness. How you imagined the implementation ?

On Mon, Jun 16, 2014 at 11:30 AM, Daniel Pizetta [email protected]
wrote:

I dont want to implement, I was explaining because I will implement all the
other ones that I put. We need to divide the tasks. And since the beggining
it was DIM not BOLD.

On Mon, Jun 16, 2014 at 11:13 AM, tiagocampo [email protected]
wrote:

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
the exporttoPDF module. This module is working WITHOUT BUGS. The miss
behavior are in the interface with another function that is not my
jurisdiction.

On Mon, Jun 16, 2014 at 11:09 AM, Daniel Pizetta <
[email protected]>

wrote:

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.

Reply to this email directly or view it on GitHub
<

#42 (comment)

.


Tiago de Campos

Reply to this email directly or view it on GitHub
<
#42 (comment)

.


Reply to this email directly or view it on GitHub
#42 (comment)
.


Tiago de Campos

from sci-corpus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.