Skip to content

Commit 90e5044

Browse files
committed
Merge pull request #66 from humdingerb/attr
Final update to attribute names...
2 parents ef465a7 + 8016f3d commit 90e5044

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

bepdf/beos/BepdfApplication.cpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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();

bepdf/beos/utils/EntryMenuItem.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ EntryMenuItem::EntryMenuItem(entry_ref* ref, const char* label, BMessage* messag
3131
BNode node(ref);
3232
BString title;
3333
if (node.InitCheck() == B_OK) {
34-
if (node.ReadAttrString("PDF:title", &title) == B_OK && title.Length() > 0) {
34+
if (node.ReadAttrString("META:title", &title) == B_OK && title.Length() > 0) {
3535
title << " (" << label << ")";
3636
SetLabel(title.String());
3737
}

0 commit comments

Comments
 (0)