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

Birt 4.15 white stripe at the right and bottom side when using svg image in the image report item #1894

Closed
Sebtasticxz opened this issue Sep 5, 2024 · 8 comments
Labels

Comments

@Sebtasticxz
Copy link

Sebtasticxz commented Sep 5, 2024

After the Upgrade from Birt 4.4.2 runtime to 4.15 runtime i get this strange white stripe on the right and bottom side.
The problem occurs only for svg files.
I have tried all kinds of styling things
Is this a bug?

I attach 2 Example reports one with svg and one with a jpg.
You probably have to reset the image path and width and heigth to 170mm of the image.

svgImageProblem.zip

SVG:
image
JPG:
image

@Sebtasticxz Sebtasticxz changed the title Birt 4.15 white stripe at the right and bottom side when using svg image in the image repot item Birt 4.15 white stripe at the right and bottom side when using svg image in the image report item Sep 5, 2024
@speckyspooky
Copy link
Contributor

speckyspooky commented Sep 5, 2024

Could you please write at which output you see the svg-border because I don't know if its HTML, PDF, WORD, etc.
Have you created the output from the web-viewer preview or have you created the the output directly from the designer?

My fast test was based on your reports for PDF and yes, I can see the border.
My test was done with BIRT 4.8. So it has noting to do with BIRT 4.15.

@Sebtasticxz
Copy link
Author

Sebtasticxz commented Sep 5, 2024

None of the above.
We have a microservice where the birtruntime is integrated and the birt engine renders / produces the report and stores the file.
The error only occurs with Pdf.
Docx is displayed correctly.

Thanks for your help.

@speckyspooky
Copy link
Contributor

I have checked your PDF documents and if I open the created PDF-docments with Adobe Reader then I see in both cases the gray border and the border on the SVG is directly at the image.
If I open the PDF-documents with FireFox then I see the results from your screen.

Currently I think that it is a topic dependent on the PDF-viewer and add the end create the PDF-emitter here the library "openPDF" the final PDF-document. So we haven't any option to investigate on this gray border.
I cannot say why it is created there.

@speckyspooky
Copy link
Contributor

So I'm back part 2. I check some different image formats with the same gray border and then I saw the base topic which isn't an image format issue.

Your image on your reports has a gray border and if the border is removed then you won't see the mentioned gray frame.
Here your report settings:

grafik

@Sebtasticxz
Copy link
Author

I want this gray Border, but not this white stripe. Which is not present in Birt 4.4.2
I have checked the File in Acrobat Reader and see the white stripe.
svg_with_white_stripe.pdf

@speckyspooky
Copy link
Contributor

May be you can add the background with the same gray and then you have it.

@Sebtasticxz
Copy link
Author

Sebtasticxz commented Sep 6, 2024

But now I have a thicker edge on the right and at the bottom.
PDF SVG:
image

DOCX is all fine with silver background...
image

@speckyspooky
Copy link
Contributor

The only thing what I could prefer to your side is to add the gray line directly to your image jpg/svg and avoid the border of te image.
The internal topic is that there are lot of calculations from the image size to the internal output dimensions and it could be that there will appear rounding differences and these could be avoid. This is a topic in generally and so I think you couldn't avoid it with border or backround setup but with border on your image directly you can solve it and it should be possible at your svg-template where you integrate the image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants