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

An "end" is missing to close the "begin" in Postscript emitter #1669

Closed
ricetrac opened this issue May 6, 2024 · 6 comments
Closed

An "end" is missing to close the "begin" in Postscript emitter #1669

ricetrac opened this issue May 6, 2024 · 6 comments
Labels
BugFix Change to correct issues
Milestone

Comments

@ricetrac
Copy link

ricetrac commented May 6, 2024

We have been using BIRT in OSGI mode for several years in our project, and we noticed that the header.ps file present in the "emitter.postscript" library contained an error: an "end" was missing to correctly close a "begin".

We apply the correction directly to our project by unzipping the .jar file "org.eclipse.birt.report.engine.emitter.postscript", and modifying the "header.ps" file.

Is it possible to integrate the correction into the next version of BIRT?

Thanks.

@ricetrac ricetrac changed the title An "end" is missing to close the "begin" An "end" is missing to close the "begin" in Postscript emitter May 6, 2024
@merks
Copy link
Contributor

merks commented May 6, 2024

Pull requests are welcome. 🙏

The setup is easy

https://github.com/eclipse-birt/birt#create-a-birt-development-environment

@speckyspooky
Copy link
Contributor

Could you please explain which PS-sequence is missing because I can see "}def" at line 140.
And I'm not a postscript developer so it would help if you can define the sequence which will be missed.

postscript

@ricetrac
Copy link
Author

ricetrac commented May 7, 2024

Good morning,
I'm trying to make a Pull Request, but in the meantime, an "end" is missing just before the "}def" to close the "begin":

/drawstreamimage {
 gsave 5 dict begin
 /pix 2 index 3 mul string def
 /i 0 def
 6 -2 roll translate
 4 -2 roll 1 index 1 index 0 eq exch 0 eq or {
 pop pop 1 index 1 index}if scale
 8 2 index 2 index [ 3 -1 roll 0 0 0 6 -1 roll sub 0 0]
 currentfile /ASCIIHexDecode filter /FlateDecode filter false 3 colorimage
 end
}def

@speckyspooky
Copy link
Contributor

speckyspooky commented May 8, 2024

@ricetrac
Please check the raw file of PR #1673 I added the "end" element for ps-method "drawstreamimage" on header.ps.
If it is ok from your side then I will commit the change to the BIRT-master.

@speckyspooky
Copy link
Contributor

The change is merged to the master-branch.

@ricetrac
Copy link
Author

@speckyspooky

@ricetrac Please check the raw file of PR #1673 I added the "end" element for ps-method "drawstreamimage" on header.ps. If it is ok from your side then I will commit the change to the BIRT-master.

it is OK for me. Sorry for the delay.

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

No branches or pull requests

3 participants