There are two files aaa-eps.ly and aaa-main.ly.

~~~~
%%% aaa-eps.ly %%%

\version "2.19.42"

\paper {
  indent=0\mm
  line-width=120\mm
  oddFooterMarkup=##f
  oddHeaderMarkup=##f
  bookTitleMarkup = ##f
  scoreTitleMarkup = ##f
}

\markup {
  {This is EPS.}
}
~~~~

~~~~
%%% aaa-main.ly %%%

\version "2.19.42"

\markup {
  {Before including eps.}
  {\epsfile #X #20 #"aaa-eps.eps"}
  {After including eps.}
}
~~~~

The following commands build an EPS file and a PS file.

```
$ lilypond -dbackend=eps --ps aaa-eps.ly
$ lilypond --ps --pdf --png aaa-main.ly
```

`aaa-eps.eps` contains the byte of 0x00 because an OTF font is embedded.
There is no problem.

`aaa-main.ly` uses \epsfile for including `aaa-eps.ps`.
So `aaa-main.ps` contains `aaa-eps.eps`.

LilyPond does not raise an error. But `aaa-main.ps` seems broken.
It cannot be converted to PDF and PNG.

`aaa-main.ps` is filled by 0x00 from the first 0x00 of embedded EPS until the 
end of EPS wrapper.
Of course, after the first 0x00 of `aaa-eps.eps` is not filled by 0x00.
In other words, again, `aaa-main.ps` seems broken.

If the EPS file does not contain the byte of 0x00, \epsfile can include it.

I investigated it, but I don't know the cause.



---

** [issues:#4890] \epsfile can't include the EPS file that contains the byte of 
0x00**

**Status:** New
**Created:** Thu Jun 09, 2016 03:52 PM UTC by Masamichi Hosoda
**Last Updated:** Thu Jun 09, 2016 03:52 PM UTC
**Owner:** nobody


I've noticed that \epsfile can't include the EPS that contain the byte of 0x00.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/testlilyissues/issues/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/testlilyissues/admin/issues/options.  Or, if this is 
a mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Testlilyissues-auto mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/testlilyissues-auto

Reply via email to