On Thu, Jan 24, 2002 at 06:30:09PM +0100, Herbert Voss wrote:
> Open the file from within LyX may be better??

Yes.

Try

bool readBB(string const & file)
{
        ifstream is(file.c_str());
        while (is) {
                string s;
                is >> s;
                if (s == "%%BoundingBox:") {
                        double a, b, c, d;
                        is >> a >> b >> c >> d;
                        if (is) {
                                cout << "BB is: " << a << ' ' << b << ' ' << c << ' ' 
<< d << endl;
                                return true;
                        }
                }
        }
        return false;
}

for starters.

Andre'

-- 
André Pönitz .............................................. [EMAIL PROTECTED]

Reply via email to