2

export question and answer as pdf
 

I would like the ability to export selected or all questions and answers in a forum (along with the option to include all comments) as a pdf for offline viewing.

http://www.xhtml2pdf.com/ can be used for this purpose I think.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
mether's avatar
1.5k
mether
asked 13 years ago

Comments

see more comments

4 Answers

1

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
mether's avatar
1.5k
mether
answered 13 years ago
link

Comments

Thanks, seems the way to go.

Evgeny's avatar Evgeny (13 years ago)
see more comments
1

Hi, I want to work on this application.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Koustava Goswami's avatar
26
Koustava Goswami
answered 13 years ago
link

Comments

Great, good luck. You may need some patience for understanding of the reportlabs library.

Evgeny's avatar Evgeny (13 years ago)
see more comments
0

I started working on this in FUDCon. Will try to finish it in upcoming weekends. @Koustava Goswami do you have any updates for me?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
sagarun's avatar
103
sagarun
answered 13 years ago
link

Comments

I have added the button but the reportlab is not working properly @sagarun

Koustava Goswami's avatar Koustava Goswami (13 years ago)
1

Apologies for the delay, I was busy with my new job :). I managed to pull of something small, I have the functionality implemented here https://github.com/sagarun/askbot-devel/tree/export-pdf . It requires reportlab. The pdf generated is very basic.

sagarun's avatar sagarun (13 years ago)

Thanks a million and happy new year! Hopefully we'll find the time to look at it in 2011.

Evgeny's avatar Evgeny (13 years ago)

@Evgeny Got any chance to review it?

sagarun's avatar sagarun (13 years ago)

@Evgeny Any update on this?

mether's avatar mether (12 years ago)
see more comments
0

Hi, I have added the button.....js code is left now I am working on that...

git@github.com:koustava/askbot-devel.git

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Koustava Goswami's avatar
26
Koustava Goswami
answered 13 years ago
link

Comments

Great, I notice that you have your virtual environment in the repository - it's better to add it to your .gitignore

Evgeny's avatar Evgeny (13 years ago)
see more comments