documentserver_community icon indicating copy to clipboard operation
documentserver_community copied to clipboard

PDF prints are blank - Document Server cant print any fonts

Open templis opened this issue 3 years ago • 31 comments

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

templis avatar Feb 15 '22 09:02 templis

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.

plaing1 avatar Feb 16 '22 03:02 plaing1

Hi,

Same issue here.

Nextcloud version 23.0.1 RC3 Community Document Server 0.1.12

roru69 avatar Feb 17 '22 14:02 roru69

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

ostasevych avatar Feb 22 '22 13:02 ostasevych

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.

Jackson90 avatar Feb 25 '22 08:02 Jackson90

Same problem here with print error (blank page)

cyberopssn avatar Feb 25 '22 20:02 cyberopssn

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

kennyMC avatar Mar 17 '22 09:03 kennyMC

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

phaser32 avatar Mar 23 '22 16:03 phaser32

Same issue please can help us

Regards Ignacio

igherardia avatar Mar 31 '22 18:03 igherardia

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

igherardia avatar Apr 26 '22 10:04 igherardia

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

igherardia avatar Apr 27 '22 11:04 igherardia

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

latency0ms avatar May 20 '22 06:05 latency0ms

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

weasam avatar Jul 20 '22 09:07 weasam

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

pizzidellamaremma avatar Jul 25 '22 10:07 pizzidellamaremma

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.

arustler avatar Jul 27 '22 07:07 arustler

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.

Polytracker avatar Sep 23 '22 13:09 Polytracker

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

phaser32 avatar Sep 23 '22 13:09 phaser32

@phaser32 have a look here: https://gist.github.com/ChristopherA/680b4eeeeb6e9e4c7fc59c010a23b6cd

Polytracker avatar Sep 23 '22 14:09 Polytracker

@Polytracker Thx again

phaser32 avatar Sep 23 '22 14:09 phaser32

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

ostasevych avatar Sep 24 '22 18:09 ostasevych

@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

phaser32 avatar Sep 25 '22 07:09 phaser32

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.

adi-dev avatar Dec 01 '22 11:12 adi-dev

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

mrbaseman avatar Dec 05 '22 20:12 mrbaseman

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

weasam avatar Dec 06 '22 07:12 weasam

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 avatar Dec 06 '22 12:12 mrbaseman

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)

mrbaseman avatar Dec 06 '22 17:12 mrbaseman

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 :(

phaser32 avatar Dec 06 '22 20:12 phaser32

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...

mrbaseman avatar Dec 06 '22 21:12 mrbaseman

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

LeahkimRoot avatar Dec 12 '22 16:12 LeahkimRoot

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

komoricodrutz avatar Jun 09 '23 19:06 komoricodrutz

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.

Axehaft avatar Dec 06 '23 04:12 Axehaft