| PDFedit | Bugtracker |
| Anonymous | Login | Signup for a new account | 05-20-2013 21:28 CEST |
| Main | My View | View Issues | Docs |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0000343 | [Kernel] =Other (Kernel)= | major | always | 11-30-09 11:17 | 11-30-09 11:55 | ||||
| Reporter | hockm0bm | View Status | public | ||||||
| Assigned To | hockm0bm | ||||||||
| Priority | high | Resolution | fixed | ||||||
| Status | resolved | ||||||||
| Summary | 0000343: properties returned directly from trailer are not editable | ||||||||
| Description |
The following program which is supposed to change a document author: boost::shared_ptr<CPdf> pdf = CPdf::getInstance(argv[1], CPdf::ReadWrite); boost::shared_ptr<const CDict> trailer = pdf->getTrailer(); boost::shared_ptr<IProperty> docInfoProp = trailer->getProperty("Info"); boost::shared_ptr<CDict> docInfo = utils::getCObjectFromRef<CDict>(docInfoProp); // <<<<<<<<<<< FAILS std::string newAuthor = "New Author"; boost::shared_ptr<IProperty> authorProp(CStringFactory::getInstance(newAuthor)); docInfo->setProperty("Author", *authorProp); fails with: change_author: /usr/local/include/pdfedit-0.4.3/kernel/cpdf.h:1877: boost::shared_ptr<X> pdfobjects::utils::getCObjectFromRef(const boost::shared_ptr<pdfobjects::IProperty>&) [with CType = pdfobjects::CDict]: Assertion `hasValidRef(refProp)' failed. |
||||||||
| Additional Information | |||||||||
| Attached Files |
|
||||||||
|
|
|||||||||