Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF prints are blank - Document Server cant print any fonts #251

Open
templis opened this issue Feb 15, 2022 · 33 comments
Open

PDF prints are blank - Document Server cant print any fonts #251

templis opened this issue Feb 15, 2022 · 33 comments

Comments

@templis
Copy link

templis commented Feb 15, 2022

If you try to print over the document server community the whole Document is empty or sometimes incomplete

I've allready tried to clear browser caches and also reinstalled the document server and onlyoffice

The Version of the document Server I run is: 0.1.12

@plaing1
Copy link

plaing1 commented Feb 16, 2022

Hi guys,

I can confirm this one.
The print function is generating a PDF, before printing.
Have tried to download as PDF and the behavior is similar.
When exporting to PDF from an OnlyOffice spreadsheet or document, the text is missing. Formatting (e.g. cell background color, table borders) are preserved when exporting from Spreadsheets and images and the number of pages have been preserved when exporting a document.

This started after updating Community Document Server from 0.1.11 to 0.1.12
Nextcloud version 21.0.7

Your prompt assistance is appreciated.

@roru69
Copy link

roru69 commented Feb 17, 2022

Hi,

Same issue here.

Nextcloud version 23.0.1 RC3
Community Document Server 0.1.12

@ostasevych
Copy link

I confirm, that PDF are blank. Additionally, I see that preview icons of the document files are also blank. Perhaps, these are interconnected issues?

image

@Jackson90
Copy link

I can confirm exactly these problems as well. By the way, the same problems exist with download/export as HTML.

Onlyoffice Document Editor 6.4.2
Community Document Server 0.1.12
Nextcloud Hub II 23.0.2

As a hint and tip: At least in my case, an S3 bucket is used as primary storage - and according to first looks into the logs, the local storage seems to be partially addressed during export.

@cyberopssn
Copy link

Same problem here with print error (blank page)

@kennyMC
Copy link

kennyMC commented Mar 17, 2022

Same problem.
ONLYOFFICE connector 7.3.2
Community Document Server 0.1.12
Nextcloud Hub II (23.0.2)

@phaser32
Copy link

phaser32 commented Mar 23, 2022

Good morning,
I have the same identical issue.
Nextcloud 23.0.3 + OnlyOffice 7.3.2
Searching on the web I found this info:
https://community.nethserver.org/t/onlyoffice-print-problem/18449/11

But I don't know how to proceed... :(
May be could be helpful..
Regards
Ale

@igherardia
Copy link

Same issue please can help us

Regards
Ignacio

@igherardia
Copy link

Good morning,
I have the same identical issue.
Nextcloud 23.0.3 + OnlyOffice 7.3.2
any solution?

@igherardia
Copy link

I was able to manage to load some fonts using the following command with SNAP

sudo nextcloud.occ documentserver:fonts --add /snap/nextcloud/30258/usr/share/fonts/truetype/dejavu/DejaVuSansMono.ttf
the default source is in that path

sudo nextcloud.occ documentserver:fonts #This command show the install fonts on documen server
DejaVuSans-Bold.ttf
DejaVuSans.ttf
DejaVuSansMono-Bold.ttf
DejaVuSansMono.ttf

The problem is not solved
I change de Arial font in spreadsheet to dejavu but do the same no print visible

@latency0ms
Copy link

All users seem to be affected by this problem - when fix?

Community Document Server 0.1.12
ONLYOFFICE 7.3.4
Nextcloud 22.2.7

@weasam
Copy link

weasam commented Jul 20, 2022

Nextcloud 23.0.4 problem still insist, this issue title should be change to
Onlyoffice Document server print PDF empty,
or
Onlyoffice Document server could not print fonts to PDF ,
Install a standalone only office server in a different domain name

@templis templis changed the title Can't print anymore PDF prints are blank Document Server cant print any fonts Jul 24, 2022
@templis templis changed the title PDF prints are blank Document Server cant print any fonts PDF prints are blank - Document Server cant print any fonts Jul 24, 2022
@pizzidellamaremma
Copy link

I'm having the same issue with Nextcloud 24.0.3 and Onlyoffice Docs latest image on Docker, is there any news?

@arustler
Copy link

I had/have the same problem. I saw that my /usr/share/fonts folder was pretty empty. After I installing fonts on my server with apt install fonts-* ttf-mscorefonts-installer most fonts are beeing printed again but not all of them.

@Polytracker
Copy link

I was able to solve this as per the above comment, In my case the Nextcloud container only had one font installed. I was able to exec into the nextcloud container and run the following commands:

sudo apt-get update
apt-get install ttf-mscorefonts-installer

note that for this to work you will need to make sure that contrib is added to your sources.

@phaser32
Copy link

Hi Polytracker,
thank You for reply.
By the way I didn't understand what You mean when You say:
"you will need to make sure that contrib is added to your sources."
Can You help me please?
Thx so much
Ale

@Polytracker
Copy link

@phaser32
Copy link

@Polytracker Thx again

@ostasevych
Copy link

I have checked with 24.0.6 and found that the issue has gone.

@phaser32
Copy link

@ostasevych Good morning, Your statement leaves me a little bit perplexed. How can You make work Document Server on 24.0.6 ? It is not compatible.
Please share info about it, I'm really interested.
Than You very much
Ale

@g-work g-work mentioned this issue Nov 12, 2022
@adi-dev
Copy link

adi-dev commented Dec 1, 2022

I just want to drop in here that I have the same issue. Strangely, never noticed this before and don't know if this was working before upgrade to NC25.0.1. Tried to install some fonts and add them to the server, but no luck. Document server 0.1.13, Onlyoffice 7.6.8. Printing or downloading as PDF produces empty pages or just graphics, no fonts. Export to PDF/A just does nothing.

@mrbaseman
Copy link

same here, installing ttf-mscorefonts-installer didn't help, nextcloud 25.0.1, Community Document Server
0.1.13, ONLYOFFICE 7.6.8, running on Ubuntu 18.04 LTS with ppa:ondrej/php entabled to get php 8.x support

@weasam
Copy link

weasam commented Dec 6, 2022

Forget about Community Document Server apps in Nextcloud store, install OnlyOffice in docker much easier to fix those issue

@mrbaseman
Copy link

If you don't have a vm or a dedicated server you usually can't run a docker container at a web hosting provider. Even a vm may come with a preinstalled kernel that is stripped down to a minimum, so that containers won't work. I even suspect that some providers sell container instances under the flag of a hosted vm instance in the cheaper market segment

@mrbaseman
Copy link

after installing the ttf-mscorefonts-installer package on Ubuntu I have tried to rebuild fonts occ documentserver:fonts --rebuild but ran into issue #278 in my local installation (on the hosted platform I wouldn't have the permissions to change anything in the software setup of the host)

@phaser32
Copy link

phaser32 commented Dec 6, 2022

Hi mrbaseman, I'm working on a shared hosting and I launched the comand on OCC Web documentserver:fonts --rebuild without problem. After some second it display "Rebuilding" and apparently everything were executed correctly but same issue here. When I print a doc file eg. ... nothing blank paper :(

@mrbaseman
Copy link

unfortunately in my shared hosting environment (1&1) the occ command also failed with a segmentation fault
Anyhow, the document server in combination with the onlyoffice environment is great, even if printing into a pdf is currently not working...

@LeahkimRoot
Copy link

Same here, Nexcloud 25.0.2 and built in community doc server

su - www-data -s /bin/bash -c "cd nextcloud; php occ documentserver:fonts --rebuild -vvv"

rebuilding
Segmentation fault

@komoricodrutz
Copy link

komoricodrutz commented Jun 9, 2023

I am having the same problem with blank PDFs in NextCloud 25.0.7 with OnlyOffice Community Document Server 0.1.13 installed. After installing ttf-mscorefonts-installer and a bunch of other fonts for good measure got the same segmentation fault:

rebuilding
Segmentation fault

An unhandled exception has been thrown:
TypeError: Return value of "OCA\DocumentServer\Command\Fonts::execute()" must be of the type int, "null" returned. in /var/www/nextcloud/apps/recognize/vendor/symfony/console/Command/Command.php:301
Stack trace:
#0 /var/www/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
#1 /var/www/nextcloud/apps/recognize/vendor/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#2 /var/www/nextcloud/apps/recognize/vendor/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#3 /var/www/nextcloud/apps/recognize/vendor/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#4 /var/www/nextcloud/lib/private/Console/Application.php(214): Symfony\Component\Console\Application->run()
#5 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#6 /var/www/nextcloud/occ(11): require_once('/var/www/nextcl...')

Related to #257
and probably to #278
and #296

In addition, when trying to open PDF files with the OnlyOffice option, it takes very long and a blank PDF window appears. Opening them normally works fine.

Also tested it with an independent OnlyOffice instance. Issue is the same.
On the OnlyOffice instance itself, everything works fine

One more small detail:
If i try to run the occ documentserver:fonts command to list installed fonts, I am getting exactly the same error

@Axehaft
Copy link

Axehaft commented Dec 6, 2023

I see there is little action on this issue/bug. This makes NC unusable in any professional setting which might require PDF's or spreadsheets.

If anybody knows of any work arounds at all, please let us know. (I've tried adding fonts as per mentioned above, but no change.) Otherwise its back to Google Docs for me.

@cyfrax
Copy link

cyfrax commented Apr 15, 2024

unfortunately not only unusable in a professional setup but unusable in any setup. Without PDFs it's quite hard to live nowadays :-) Especially as the print function works via PDF output which are blank.
I tested it with a public document server, same thing. So maybe this is more of an OnlyOffice problem? Or are all document servers affected?

Copy link

github-actions bot commented Oct 7, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 60 days. Thank you for your contribution!

Retaking repo management include inheritance of old, not treated, and probablty obsolete issues, this is why it was decided to mark issues as stale.

@github-actions github-actions bot added the stale label Oct 7, 2024
@bornostojak
Copy link

Hi, I'm still seeing this issue on my Nextcloud installation

Community Document Server 0.1.18
ONLYOFFICE 9.5.0
Nextcloud 30.0.1

can you provide any update on this issue?

@github-actions github-actions bot removed the stale label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests