Now using BNodeInfo class to set MIME type, following korli suggestion.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14511 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -236,9 +236,9 @@ PDFWriter::EndJob()
|
|||||||
PDF_close(fPdf);
|
PDF_close(fPdf);
|
||||||
REPORT(kDebug, 0, ">>>> PDF_close");
|
REPORT(kDebug, 0, ">>>> PDF_close");
|
||||||
|
|
||||||
PDF_delete(fPdf);
|
PDF_delete(fPdf);
|
||||||
PDF_shutdown();
|
PDF_shutdown();
|
||||||
|
|
||||||
fclose(fLog);
|
fclose(fLog);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
@@ -268,9 +268,11 @@ PDFWriter::InitWriter()
|
|||||||
fState = NULL;
|
fState = NULL;
|
||||||
fStateDepth = 0;
|
fStateDepth = 0;
|
||||||
|
|
||||||
// Set MIME-type explicit
|
// Set MIME type explicit as we *do* know it's a PDF document
|
||||||
SetAttribute("BEOS:TYPE", "application/pdf");
|
BFile * file = dynamic_cast<BFile *>(Transport());
|
||||||
|
if (file)
|
||||||
|
BNodeInfo(file).SetType("application/pdf");
|
||||||
|
|
||||||
// pdflib scope: object
|
// pdflib scope: object
|
||||||
/*
|
/*
|
||||||
const char* license_key;
|
const char* license_key;
|
||||||
|
|||||||
Reference in New Issue
Block a user