Page MenuHomePhabricator

Long URLs and Images in generated pdf overflow column width, spanning to second column if present on the first one
Closed, InvalidPublic

Description

I've added the screenshots of the pdf where url and image are overflow to column width

messy-link-print.png (166×1 px, 38 KB)

messt-link-print1.png (62×652 px, 11 KB)

print_error.PNG (562×951 px, 61 KB)

Steps to reproduce:

  1. Go to https://www.wikidata.org/wiki/Wikidata:Main_Page
  2. Click on the Download as PDF link on the sidebar
  3. Check the generated PDF for a long URL

Event Timeline

Ciencia_Al_Poder renamed this task from In pdf file url is over written to next column to Long URLs in generated pdf overflow column width, spanning to second column if present on the first one.May 29 2016, 2:16 PM
Ciencia_Al_Poder added a project: Collection.
Ciencia_Al_Poder updated the task description. (Show Details)
PuriDilip renamed this task from Long URLs in generated pdf overflow column width, spanning to second column if present on the first one to Long URLs and Images in generated pdf overflow column width, spanning to second column if present on the first one.May 30 2016, 8:55 AM
PuriDilip updated the task description. (Show Details)
PuriDilip updated the task description. (Show Details)
PuriDilip updated the task description. (Show Details)

can anyone tell me how can I fix this???

can anyone tell me how can I fix this???

@PuriDilip: Thanks for your interest! Do you have a specific question we can help with? Because I guess that "Run the code locally, find the right place in the code, change code to implement line breaks, test your code changes" is not exactly the answer you expect? :)
For general information, see https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker

@Aklapper Thanks for respond

Actually I've installed mediawiki on my local machine but I've some difficulty to setup pdf render-server. I think some kind of special setting requires in LocalSettings.php file.
Please help me to setup the render-server.

@Aklapper let me know anybody(experienced user) who can help me. I knew people are so busy but little bit help will be good for me.

rendering_failure_message.png (179×498 px, 11 KB)

Please help me to setup the render-server.

@PuriDilip: General setup questions are out of scope for this task which is only about long URLs overflowing column width. Please refer to https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker#Feedback.2C_questions_and_support - thanks!

As already announced in Tech News, OfflineContentGenerator (OCG) will not be used anymore after October 1st, 2017 on Wikimedia sites. OCG will be replaced by Electron. You can read more on mediawiki.org.

https://www.wikidata.org/api/rest_v1/page/pdf/Wikidata%3AMain_Page
Hmm..

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"get","uri":"/www.wikidata.org/v1/page/pdf/Wikidata%3AMain_Page"}

https://www.wikidata.org/api/rest_v1/page/pdf/Wikidata%3AMain_Page
Hmm..

{"type":"https://mediawiki.org/wiki/HyperSwitch/errors/not_found#route","title":"Not found.","method":"get","uri":"/www.wikidata.org/v1/page/pdf/Wikidata%3AMain_Page"}

Proton is not enabled for wikidata.org, see https://github.com/wikimedia/restbase/search?q=v1%2Fpdf.js&unscoped_q=v1%2Fpdf.js

Not sure why, @Pchelolo any thoughts? If it's not supposed to be enabled for Wikidata, we should remove the "Download PDF" link

Mholloway subscribed.

I don't see a "Download as PDF" link (or indeed a "Print/export" nav bar section) on Wikidata. Per T204912#4608464 it was intentionally disabled. Also, we don't advertise any /page/pdf endpoints being available on Wikidata's REST API docs, either. Closing as invalid.