source: projects/specs/branches/6/t/texlive/texlive-2009-luatexdir-libpoppler-0.12.patch @ 1973

Revision 1973, 1.9 KB checked in by munepi, 14 years ago (diff)

texlive: rebuilt zlib-1.2.5; applied security patches and some patches for libpoppler-0.12

  • texlive-20091107-source/texk/web2c/luatexdir/image/pdftoepdf.cc

    This patch is based on texlive-2009-pdftexdir-libpoppler-0.12.patch. 
    
    Fix FTBFS with poppler again, they will never be able to keep APIs
    
    Thanks to Ubuntu people for that patch
    
    diff -up texlive-20091107-source/texk/web2c/luatexdir/image/pdftoepdf.cc.xpdf texlive-20091107-source/texk/web2c/luatexdir/image/pdftoepdf.cc
    old new static void writeEncodings() 
    666666    } 
    667667    for (r = encodingList; r != NULL; r = n) { 
    668668        n = r->next; 
    669         delete r->font; 
     669//        delete r->font; 
    670670        delete r; 
    671671    } 
    672672} 
    read_pdf_info(image_dict * idict, intege 
    705705    Page *page; 
    706706    int rotate; 
    707707    PDFRectangle *pagebox; 
     708    int minor_pdf_version_found, major_pdf_version_found; 
    708709    float pdf_version_found, pdf_version_wanted, xsize, ysize, xorig, yorig; 
    709710    assert(idict != NULL); 
    710711    assert(img_type(idict) == IMG_TYPE_PDF); 
    read_pdf_info(image_dict * idict, intege 
    720721    // this works only for PDF 1.x -- but since any versions of PDF newer 
    721722    // than 1.x will not be backwards compatible to PDF 1.x, pdfTeX will 
    722723    // then have to changed drastically anyway. 
    723     pdf_version_found = pdf_doc->doc->getPDFVersion(); 
     724    minor_pdf_version_found = pdf_doc->doc->getPDFMinorVersion(); 
     725    major_pdf_version_found = pdf_doc->doc->getPDFMajorVersion(); 
     726    pdf_version_found = major_pdf_version_found + (minor_pdf_version_found * 0.1); 
    724727    pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1); 
     728 
    725729    if (pdf_version_found > pdf_version_wanted + 0.01) { 
    726730        char msg[] = 
    727731            "PDF inclusion: found PDF version <%.1f>, but at most version <%.1f> allowed"; 
Note: See TracBrowser for help on using the repository browser.