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

Export to PDF is creating a blank page #147

Open
2 tasks done
jjasoncool opened this issue Nov 24, 2023 · 2 comments
Open
2 tasks done

Export to PDF is creating a blank page #147

jjasoncool opened this issue Nov 24, 2023 · 2 comments

Comments

@jjasoncool
Copy link

jjasoncool commented Nov 24, 2023

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

You must agree to search and the code of conduct. You must fill in this entire template. If you delete part/all or miss parts out your issue will be closed.

If you are technical, you should reporting bugs along the lines of https://marker.io/blog/how-to-write-bug-report. If you are not technical, we will make allowances, please try to make an effort to understand the process.

Describe the bug
draw.io docker container selfhost can't export PDF files, png and svg is normal.

To Reproduce
Steps to reproduce the behavior:
Just simple export PDF
圖片

Will pop page 404, and url is https://mydomain/service/0
圖片

Expected behavior
A clear and concise description of what you expected to happen.

  • download exported PDF file.

draw.io version (In the Help->About menu of the draw.io editor):

  • draw.io version 22.1.4

Desktop (please complete the following information):

  • OS: windows/Linux
  • Browser firefox
  • Browser Version 120.0

I tested the problem in incognito/private mode with all browser extensions switched off, write "yes" below:

  • yes

Additional context
My Drawio is selfhost using docker-compose

  drawio:
    image: jgraph/drawio:${DWIO_VERSION}
    container_name: drawio
    restart: always
    environment:
      - DRAWIO_SELF_CONTAINED=1
      - DRAWIO_BASE_URL=https://${HOST_DOMAIN}
      - DRAWIO_SERVER_URL=https://${HOST_DOMAIN}/drawio/
      # why doesn't use EXPORT_URL to export PDF?
      - EXPORT_URL=http://image-export:8000/
    depends_on:
      - nginx

  image-export:
    image: jgraph/export-server:latest
    container_name: drawio-export
    expose:
      - "8000"
    environment:
      - DRAWIO_BASE_URL=https://${HOST_DOMAIN}
    volumes:
      - ./drawio/fonts:/usr/share/fonts/drawio
    restart: always

REF: https://github.com/jgraph/docker-drawio/blob/dev/nextcloud/docker-compose.yml

The EXPORT_URL use docker local domain like upon example, but drawio don't send request to export-server

@jjasoncool
Copy link
Author

#128

@m-mohamedin
Copy link

The two containers need to be in the same docker network. Did you try the original docker compose file?

@m-mohamedin m-mohamedin transferred this issue from jgraph/drawio Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants