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

Revision 1973, 1.6 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

  • texk/web2c/pdftexdir/pdftoepdf.cc

    Fix FTBFS with poppler again, they will never be able to keep APIs
    
    Thanks to Ubuntu people for that patch
    ---
     texk/web2c/pdftexdir/pdftoepdf.cc |    8 ++++++--
     1 file changed, 6 insertions(+), 2 deletions(-)
    
    old new  
    650650    } 
    651651    for (r = encodingList; r != 0; r = n) { 
    652652        n = r->next; 
    653         delete r->font; 
     653//        delete r->font; 
    654654        delete r; 
    655655    } 
    656656} 
     
    690690    Page *page; 
    691691    int rotate; 
    692692    PDFRectangle *pagebox; 
     693    int minor_pdf_version_found, major_pdf_version_found; 
    693694    float pdf_version_found, pdf_version_wanted; 
    694695    // initialize 
    695696    if (!isInit) { 
     
    705706    // this works only for PDF 1.x -- but since any versions of PDF newer 
    706707    // than 1.x will not be backwards compatible to PDF 1.x, pdfTeX will 
    707708    // then have to changed drastically anyway. 
    708     pdf_version_found = pdf_doc->doc->getPDFVersion(); 
     709    minor_pdf_version_found = pdf_doc->doc->getPDFMinorVersion(); 
     710    major_pdf_version_found = pdf_doc->doc->getPDFMajorVersion(); 
     711    pdf_version_found = major_pdf_version_found + (minor_pdf_version_found * 0.1); 
    709712    pdf_version_wanted = 1 + (minor_pdf_version_wanted * 0.1); 
     713 
    710714    if (pdf_version_found > pdf_version_wanted) { 
    711715        char msg[] = 
    712716            "PDF inclusion: found PDF version <%.1f>, but at most version <%.1f> allowed"; 
Note: See TracBrowser for help on using the repository browser.