Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jun 2004 20:45:07 +0200
From:      Lars =?iso-8859-1?Q?K=F6ller?= <lars@koellers.net>
To:        ale@FreeBSD.org
Cc:        ports@freebsd.org
Subject:   PDFlib upgrade in FreeBSD ports tee
Message-ID:  <200406271845.i5RIj7Q5040955@odie.koellers.net>

next in thread | raw e-mail | index | archive | help
--------

Hi,

I'm maintaining the grace port (/usr/ports/math/grace) on FreeBSD, and =

notice that your update breaks the build of grace.

There seems to be an undocumented change:

  PDF_open_fp

used in grace isn't available anymore. I didn't find anything about in =

the pdflib documentation. Dou you have any idea, what to use in case of =

that library call? Here is the source excerpt from pdfdrv.c:

    /* undefine all graphics state parameters */
    pdf_color =3D -1;
    pdf_pattern =3D -1;
    pdf_linew =3D -1.0;
    pdf_lines =3D -1;
    pdf_linecap =3D -1;
    pdf_linejoin =3D -1;

    phandle =3D PDF_new2(pdf_error_handler, NULL, NULL, NULL, NULL);
    if (phandle =3D=3D NULL) {
        return RETURN_FAILURE;
    }

    if (pdf_setup_pdf1_3 =3D=3D TRUE) {
        s =3D "1.3";
    } else {
        s =3D "1.2";
    }
    PDF_set_parameter(phandle, "compatibility", s);

    if (PDF_open_fp(phandle, prstream) =3D=3D -1) {
        return RETURN_FAILURE;
    }
    =

    PDF_set_value(phandle, "compress", (float) pdf_setup_compression);

    PDF_set_info(phandle, "Creator", bi_version_string());
    PDF_set_info(phandle, "Author", get_username());
    PDF_set_info(phandle, "Title", get_docname());
        =

    pdf_font_ids =3D xmalloc(number_of_fonts()*SIZEOF_INT);
    for (i =3D 0; i < number_of_fonts(); i++) {
        pdf_font_ids[i] =3D -1;
    }

Many thanks and best regards

Lars

-- =

Lars K=F6ller
E-Mail: lars@koellers.net (LKoeller@FreeBSD.ORG)
-------- FreeBSD, was sonst? ---- http://www.de.freebsd.org --------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406271845.i5RIj7Q5040955>