@@ -695,15 +695,15 @@ static struct {
695695 const char *pdf_name;
696696 int32 type_code;
697697} gAttrInfo [] = {
698- {" PDF :subject" , " Subject" , " Subject" , B_STRING_TYPE},
699- {" PDF :title" , " Title" , " Title" , B_STRING_TYPE},
700- {" PDF :creator" , " Creator" , " Creator" , B_STRING_TYPE},
701- {" PDF :author" , " Author" , " Author" , B_STRING_TYPE},
702- {" PDF:keywords " , " Keywords" , " Keywords" , B_STRING_TYPE},
698+ {" META :subject" , " Subject" , " Subject" , B_STRING_TYPE},
699+ {" META :title" , " Title" , " Title" , B_STRING_TYPE},
700+ {" META :creator" , " Creator" , " Creator" , B_STRING_TYPE},
701+ {" META :author" , " Author" , " Author" , B_STRING_TYPE},
702+ {" META:keyw " , " Keywords" , " Keywords" , B_STRING_TYPE},
703703 {" PDF:producer" , " Producer" , " Producer" , B_STRING_TYPE},
704704 {" PDF:created" , " Created" , " CreationDate" , B_TIME_TYPE},
705705 {" PDF:modified" , " Modified" , " ModDate" , B_TIME_TYPE},
706- {" PDF :pages" , " Pages" , NULL , B_INT32_TYPE},
706+ {" META :pages" , " Pages" , NULL , B_INT32_TYPE},
707707 {" PDF:version" , " Version" , NULL , B_DOUBLE_TYPE},
708708 {" PDF:linearized" , " Linearized" , NULL , B_BOOL_TYPE},
709709 {NULL , NULL , NULL , 0 }
@@ -734,7 +734,7 @@ BepdfApplication::UpdateFileAttributes(PDFDoc *doc, entry_ref *ref) {
734734 }
735735
736736 int32 pages = (int32)doc->getNumPages ();
737- UpdateAttr (node, " PDF :pages" , B_INT32_TYPE, 0 , &pages, sizeof (int32));
737+ UpdateAttr (node, " META :pages" , B_INT32_TYPE, 0 , &pages, sizeof (int32));
738738 bool b = doc->isLinearized ();
739739 UpdateAttr (node, " PDF:linearized" , B_BOOL_TYPE, 0 , &b, sizeof (b));
740740 double d = doc->getPDFVersion ();
0 commit comments