Support all BookStack languages on PDF export. #148

Closed
opened 2016-07-13 19:07:49 +02:00 by xianx · 7 comments
xianx commented 2016-07-13 19:07:49 +02:00 (Migrated from github.com)

BookStack is great. But recently I noticed that it does not support Unicode character.

Like when a page title is fully written in other language other then English. Means there is no English character all written in Unicode character, Page URL is not created.

Also PDF generates ambiguous character when document is written in Unicode character.

I am running PHP 7.0 with Mysql 5.5.49

Will you please provide support for Unicode? It very very much import for global user.

BookStack is great. But recently I noticed that it does not support Unicode character. Like when a page title is fully written in other language other then English. Means there is no English character all written in Unicode character, Page URL is not created. Also PDF generates ambiguous character when document is written in Unicode character. I am running PHP 7.0 with Mysql 5.5.49 Will you please provide support for Unicode? It very very much import for global user.
nwalke commented 2016-07-21 16:55:13 +02:00 (Migrated from github.com)

I see you're using Mysql 5.5.x, does it exhibit the same behavior on Mysql 5.6?

BookStack requires Mysql 5.6 as shown here: https://www.bookstackapp.com/docs/admin/installation

Also what version of BookStack is this?

I see you're using Mysql 5.5.x, does it exhibit the same behavior on Mysql 5.6? BookStack requires Mysql 5.6 as shown here: https://www.bookstackapp.com/docs/admin/installation Also what version of BookStack is this?
ssddanbrown commented 2016-09-12 20:05:31 +02:00 (Migrated from github.com)

Hi @xianx, Since you have not responded to the above from nwalke I will close this issue. If you are still having issues with this and answer the above questions I'll happily re-open this.

Hi @xianx, Since you have not responded to the above from nwalke I will close this issue. If you are still having issues with this and answer the above questions I'll happily re-open this.
WeslyG commented 2017-10-24 19:15:46 +02:00 (Migrated from github.com)

Hello here, i have this problem too.
I start bookstack from docker images (offical)
Mysql 5.7.12
Bookstack version 0.18.4
@ssddanbrown, I ask you to take a look at this problem again.
My article was written in Russian, with an extort I got it.
When exporting to html, the output is correct

image
image

Hello here, i have this problem too. I start bookstack from docker images (offical) Mysql 5.7.12 Bookstack version 0.18.4 @ssddanbrown, I ask you to take a look at this problem again. My article was written in Russian, with an extort I got it. When exporting to html, the output is correct ![image](https://user-images.githubusercontent.com/12625945/31957416-23076412-b908-11e7-9ade-054e92b9fabd.png) ![image](https://user-images.githubusercontent.com/12625945/31957529-836fdbfe-b908-11e7-9f7e-a7cd9b5c1630.png)
ssddanbrown commented 2017-12-20 21:38:26 +01:00 (Migrated from github.com)

Re-opening and marking as bug due to comment above and #625.

Re-opening and marking as bug due to comment above and #625.
tlnagy commented 2020-05-20 23:58:02 +02:00 (Migrated from github.com)

Relatedly, PDF export clobbers scientific pages since a lot of mathematical unicode symbols don't seem to work:

image

This is with Bookstack 0.27.4. Expected output is μL instead of ?L

Relatedly, PDF export clobbers scientific pages since a lot of mathematical unicode symbols don't seem to work: ![image](https://user-images.githubusercontent.com/1661487/82501423-196e5380-9aaa-11ea-8646-6d53537385ce.png) This is with Bookstack 0.27.4. Expected output is μL instead of ?L
alexwoo-awso commented 2026-03-25 15:25:35 +01:00 (Migrated from github.com)

PDF export titles can lose non-ASCII characters due to heading font fallback in DOMPDF. I added a PDF-only heading font override to DejaVu Sans and verified Polish titles export correctly. This should help other languages too; PR landed -> https://github.com/BookStackApp/BookStack/pull/6069.

PDF export titles can lose non-ASCII characters due to heading font fallback in DOMPDF. I added a PDF-only heading font override to DejaVu Sans and verified Polish titles export correctly. This should help other languages too; PR landed -> https://github.com/BookStackApp/BookStack/pull/6069.
ssddanbrown commented 2026-04-22 14:38:44 +02:00 (Migrated from github.com)

@alexwoo-awso I think that was related, but a bit different to the fundamental issues here, which is that the default font support (and default styles) don't cover the full range of languages/characters folks may need.


Within #6109 I've created system for loading custom fonts to use in (default DOMPdf based) PDF exports.
There will be documentation to show how custom fonts can be loaded using this system, where a language may not be supported by default for these PDF exports.
This will be part of the next feature release.

@alexwoo-awso I think that was related, but a bit different to the fundamental issues here, which is that the default font support (and default styles) don't cover the full range of languages/characters folks may need. --- Within #6109 I've created system for loading custom fonts to use in (default DOMPdf based) PDF exports. There will be documentation to show how custom fonts can be loaded using this system, where a language may not be supported by default for these PDF exports. This will be part of the next feature release.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
bookstack/bookstack#148
No description provided.