Skip to content

[IMP] use PyPDF2 if possible - #141

Merged
pedrobaeza merged 2 commits into
OCA:9.0from
hbrunn:9.0-report_qweb_pdf_watermark
Aug 30, 2017
Merged

pedrobaeza merged 2 commits into
OCA:9.0from
hbrunn:9.0-report_qweb_pdf_watermark

Conversation

@hbrunn

@hbrunn hbrunn commented Jun 8, 2017

Copy link
Copy Markdown
Member

pypdf is very slow for merging pages, with PyPDF2, we get something between 20-80% speedup according to my tests

@hbrunn hbrunn added this to the 9.0 milestone Jun 8, 2017
@pedrobaeza

Copy link
Copy Markdown
Member

Now we have broken tests. Can you please check?

@alexis-via alexis-via left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great !

@hbrunn
hbrunn force-pushed the 9.0-report_qweb_pdf_watermark branch from 1e0dcf8 to c434353 Compare July 18, 2017 07:20
@lasley

lasley commented Aug 29, 2017

Copy link
Copy Markdown

[ADD] can we force some package version on travis?

@hbrunn - You're looking for WKHTMLTOPDF_VERSION 😉

pdf = PdfFileWriter()
pdf_watermark = None
try:
print 'read watermark'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldnot we remove all print statements?

@hbrunn

hbrunn commented Aug 30, 2017

Copy link
Copy Markdown
Member Author

@elicoidal sure, those were just for debugging why the build wouldn't work on travis
@lasley thanks, I took the liberty to clean that up a bit: OCA/maintainer-quality-tools#479

and yay, it's green, can we merge?

@pedrobaeza

Copy link
Copy Markdown
Member

Please change module version number

@hbrunn
hbrunn force-pushed the 9.0-report_qweb_pdf_watermark branch from 9e4725b to c0252f7 Compare August 30, 2017 08:18
@hbrunn

hbrunn commented Aug 30, 2017

Copy link
Copy Markdown
Member Author

done

@pedrobaeza
pedrobaeza merged commit 631fd60 into OCA:9.0 Aug 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants