C2DH / journal-of-digital-history-backend

backend for our Journal of Digital History
MIT License
4 stars 0 forks source link

Generate pdf for the peer review #185

Closed eliselavy closed 1 year ago

eliselavy commented 1 year ago

Here is the template:

template_peer_review.pdf

eliselavy commented 1 year ago

Addition to the Admin:

eliselavy commented 1 year ago

The conflict is caused by: The user requested Pillow==8.1.2 weasyprint 58.1 depends on Pillow>=9.1.0

=> I upgrade to Pillow==9.1.0

eliselavy commented 1 year ago

Problem in development:

Dev admin not available

Screenshot 2023-04-28 at 12 05 47
eliselavy commented 1 year ago

Locally:

 ~/c/journal-of-digital-history-backend (develop)> pango-view --version          (jdhback) 
pango-view (pango) 1.50.14
eliselavy commented 1 year ago
eliselavy commented 1 year ago

In development

backend_1             |   File "/usr/local/lib/python3.8/site-packages/cffi/api.py", line 838, in accessor_function
backend_1             |     value = backendlib.load_function(BType, name)
backend_1             | AttributeError: function/symbol 'pango_context_set_round_glyph_positions' not found in library 'libpango-1.0.so.0': Symbol not found: pango_context_set_round_glyph_positions
eliselavy commented 1 year ago

On development:

Screenshot 2023-05-02 at 16 12 37

Need to downgrade version of weasyprint due to https://github.com/Kozea/WeasyPrint/issues/1384

eliselavy commented 1 year ago

Fixed problem of font by doing this: https://github.com/Kozea/WeasyPrint/issues/1038#issuecomment-1084598625

eliselavy commented 1 year ago

Difference of behaviour between locally and dev: Screenshot 2023-05-03 at 15 33 39 lass ArticleForm(forms.ModelForm):

eliselavy commented 1 year ago
eliselavy commented 1 year ago

Ok deployed and test in dev

eliselavy commented 1 year ago

deployed and tested in production v2.0.0 https://github.com/C2DH/journal-of-digital-history-backend/releases/tag/v2.0.0