-
Notifications
You must be signed in to change notification settings - Fork 394
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
Batik URL error when loading external image #1841
Comments
We would need a small example report from your side with the grafik. Yes, I read the StackOverflow-hint and it must be checked. |
Maybe you can solve this by using a relative path which must not contain upwards references |
TLDR Some background information that leads to some feature suggestions. I generate BIRT reports purely from command line. We do our other analytics using other BI applications but BIRT has proven to be the best at creating PDFs, DOCX and XLSX. I found it simpler to create different client colour schemes by just simply copying different PNG files to one folder in a batch file then generating the reports. I tend to find that adding scripts to BIRT reports makes them hard to maintain for none technical users and even for me. A year later I am not sure where the magic is happening. This wouldn't be necessary if one could enter a dynamic value (with hex value of colour) in the option window below:
Thank you for the wonderful work you do developing BIRT. These are just suggestions. |
For your suggestions, have you tried to use the CSS-styles of the report which can be manipulated through a fetch based on the style name and changed to the according CI. (I use this option for my specific division-CIs). And a question could you please add a screen where you call the image dialog because I'm not sure which option you mean/where the dialog was called from. |
The change of the embedded external resource is merged to the master with PR #1857. |
There is an additional option instead of the image option for the palett-color which is a good solution This is the way to use parameters for the coloring - one of your requirements. Further infromation to have acces to external variables: #1848 Further information for chart scripting: http://birtworld.blogspot.com/2011/10/birt-chart-palette.html Chart, dynamic color change (script)Chart example with scripted color |
I will close this ticket. Don't hesitate to aks if there are some further detailed questions. |
I use the ReportEngine from the command line to generate PDF documents for clients. Different clients have different colour themes for their graphs. I use images as background colours for the graph series. This works well in BIRT version from 2018. The SeriesPalette XML looks something like this
<SeriesPalette> <Entries xsi:type="attribute:Image"> <URL>file:///C:/hiu/birt/path/to/images/live/colour1.png</URL> <source>static</source> </Entries>
I am getting the following error when running BIRT
I did some research which led me to this StackOverflow answer. Seems this was a change to Batik for security reasons, any chance his can be made into a flag or option that one can check.
Edit: Changed path names
The text was updated successfully, but these errors were encountered: