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

[BUG] Exported pdf/png has black areas depending on zoom/screen size #8751

Open
steven-twerdochlib opened this issue Oct 30, 2024 · 0 comments
Labels
bug Something isn't working untriaged

Comments

@steven-twerdochlib
Copy link

steven-twerdochlib commented Oct 30, 2024

Describe the bug

When exporting dashboard to pdf or png while zoomed out enough (e.g. 90% zoom in chrome) or when using a particular screen size I get a black shading area on the resulting pdf that’s not seen in the browser (see image for example).
Does anyone know if there’s a setting or something that can avoid this happening? Perhaps something that forces zoom level/screen size for pdf/png while exporting.
I’ll also be interested if other people can replicate this behaviour.

To Reproduce
I created a local opensearch and opensearch dashboard
I used the sample data provided.
On 1920x1080 screen size, 100% size of texts, images, etc... and zoom of chrome at 100% I export to pdf and see no issue.
With the same settings but have chrome zoom at 90% (by doing 'CTRL -'). I get black areas covering the part of the pdf (See iamge). This black area increases the further out I go.

Expected behavior
There should be no black areas covering pdf.

OpenSearch Version & Dashboards Version
I've pulled the latest versions although I noticed in previous version it was a partially transparent grey are instead of a black area.

Screenshots
image

Host/Environment (please complete the following information):

  • OS: Windows 10
  • Browser: Chrome, Firefox, Edge...

docker-compose.yml file

version: '3'
services:
  opensearch-node:
    image: opensearchproject/opensearch:latest
    container_name: opensearch-node
    environment:
      - discovery.type=single-node
      - bootstrap.memory_lock=true
      - "OPENSEARCH_JAVA_OPTS=-Xms512m -Xmx512m"  # Adjust memory limits as needed
      - OPENSEARCH_INITIAL_ADMIN_PASSWORD=Azbycx123@  # Set your admin password
    ulimits:
      memlock:
        soft: -1
        hard: -1
    ports:
      - 9200:9200

  opensearch-dashboards:
    image: opensearchproject/opensearch-dashboards:latest
    container_name: opensearch-dashboards
    environment:
      - OPENSEARCH_HOSTS=["https://opensearch-node:9200"]
    ports:
      - 5601:5601
    depends_on:
      - opensearch-node

@steven-twerdochlib steven-twerdochlib added bug Something isn't working untriaged labels Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working untriaged
Projects
None yet
Development

No branches or pull requests

1 participant