├── VERSION ├── version.h ├── 3rdparty ├── unzip101e.zip ├── htmlcxx-0.85-x86_64-linux.tar.bz2 ├── mimetic-0.9.7-x86_64-linux.tar.bz2 ├── wv2-0.2.3_patched_4-x86_64-linux.tar.bz2 ├── libcharsetdetect-1.0-x86_64-linux.tar.bz2 ├── wv2-0.2.3_patched_4-private_headers.tar.bz2 ├── pdf_font_metrics.txt └── resources │ ├── pdf_font_metrics.txt │ ├── CNS2-V │ ├── Roman │ ├── Katakana │ ├── ETenms-B5-H │ ├── Hiragana │ ├── UniJIS-UCS2-HW-H │ ├── Hankaku │ ├── B5-V │ ├── CNS1-V │ ├── B5pc-V │ ├── HKdla-B5-V │ ├── HKdlb-B5-V │ ├── HKgccs-B5-V │ ├── HKm314-B5-V │ ├── HKm471-B5-V │ ├── ETHK-B5-V │ ├── HKscs-B5-V │ ├── UniCNS-UCS2-V │ ├── ETen-B5-V │ ├── UniCNS-UTF16-V │ ├── UniCNS-UTF8-V │ ├── KSC-V │ ├── KSC-EUC-V │ ├── UniCNS-UTF32-V │ ├── KSCms-UHC-HW-V │ ├── KSCpc-EUC-V │ ├── KSC-Johab-V │ ├── KSCms-UHC-V │ ├── UniKS-UCS2-V │ ├── GB-V │ ├── GBT-V │ ├── GBK-EUC-V │ ├── GBKp-EUC-V │ ├── GB-EUC-V │ ├── GBT-EUC-V │ ├── GBpc-EUC-V │ ├── GBTpc-EUC-V │ ├── UniKS-UTF16-V │ ├── ETenms-B5-V │ ├── UniKS-UTF8-V │ ├── UniGB-UTF16-V │ ├── WP-Symbol │ ├── UniKS-UTF32-V │ ├── UniGB-UTF8-V │ ├── UniGB-UCS2-V │ ├── UniGB-UTF32-V │ ├── 78-V │ ├── V │ └── 78-EUC-V ├── COPYING.COM ├── doc ├── index.html └── Doxyfile ├── src ├── tracing.h ├── xml_fixer.h ├── entities.h ├── txt_parser.h ├── oshared.h ├── xml_stream.h ├── odfxml_parser.h ├── odf_ooxml_parser.h ├── rtf_parser.h ├── doc_parser.h ├── pdf_parser.h ├── ppt_parser.h ├── xlsb_parser.h ├── iwork_parser.h ├── eml_parser.h ├── xls_parser.h ├── html_parser.h ├── formatting_style.h ├── thread_safe_ole_storage.h ├── doctotext_unzip.h ├── thread_safe_ole_stream_reader.h ├── link.h ├── attachment.h ├── data_stream.h ├── metadata.h ├── exception.h ├── variant.h ├── list_style.cpp ├── tracing.cpp └── exception.cpp ├── update_version.sh ├── tests ├── cpp_api_test.cpp ├── multithreading_test.cpp └── read_from_buffer_test.cpp └── README /VERSION: -------------------------------------------------------------------------------- 1 | .33537 -------------------------------------------------------------------------------- /version.h: -------------------------------------------------------------------------------- 1 | #define VERSION ".33537" 2 | -------------------------------------------------------------------------------- /3rdparty/unzip101e.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tokgolich/doctotext/HEAD/3rdparty/unzip101e.zip -------------------------------------------------------------------------------- /COPYING.COM: -------------------------------------------------------------------------------- 1 | Please contact SILVERCODERS (http://silvercoders.com) for a commercial license for DocToText. 2 | -------------------------------------------------------------------------------- /doc/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /3rdparty/htmlcxx-0.85-x86_64-linux.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tokgolich/doctotext/HEAD/3rdparty/htmlcxx-0.85-x86_64-linux.tar.bz2 -------------------------------------------------------------------------------- /3rdparty/mimetic-0.9.7-x86_64-linux.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tokgolich/doctotext/HEAD/3rdparty/mimetic-0.9.7-x86_64-linux.tar.bz2 -------------------------------------------------------------------------------- /3rdparty/wv2-0.2.3_patched_4-x86_64-linux.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tokgolich/doctotext/HEAD/3rdparty/wv2-0.2.3_patched_4-x86_64-linux.tar.bz2 -------------------------------------------------------------------------------- /src/tracing.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_TRACING_H 2 | #define DOCTOTEXT_TRACING_H 3 | 4 | void doctotext_init_tracing(const char* filename); 5 | 6 | #endif 7 | -------------------------------------------------------------------------------- /3rdparty/libcharsetdetect-1.0-x86_64-linux.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tokgolich/doctotext/HEAD/3rdparty/libcharsetdetect-1.0-x86_64-linux.tar.bz2 -------------------------------------------------------------------------------- /3rdparty/wv2-0.2.3_patched_4-private_headers.tar.bz2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tokgolich/doctotext/HEAD/3rdparty/wv2-0.2.3_patched_4-private_headers.tar.bz2 -------------------------------------------------------------------------------- /src/xml_fixer.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_XML_FIXER_H 2 | #define DOCTOTEXT_XML_FIXER_H 3 | 4 | #include 5 | 6 | class DocToTextXmlFixer 7 | { 8 | private: 9 | struct Implementation; 10 | Implementation* Impl; 11 | 12 | public: 13 | DocToTextXmlFixer(); 14 | ~DocToTextXmlFixer(); 15 | std::string fix(const std::string& xml) const; 16 | }; 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /src/entities.h: -------------------------------------------------------------------------------- 1 | /* Copyright 2012 Christoph Gärtner 2 | Distributed under the Boost Software License, Version 1.0 3 | */ 4 | 5 | #ifndef DECODE_HTML_ENTITIES_UTF8_ 6 | #define DECODE_HTML_ENTITIES_UTF8_ 7 | 8 | #include 9 | #include 10 | 11 | extern size_t decode_html_entities_utf8(char* dest, const char* src); 12 | /* 13 | Takes input from and decodes into 14 | The function returns the length of the decoded string. 15 | */ 16 | 17 | #endif 18 | -------------------------------------------------------------------------------- /src/txt_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_TXT_PARSER_H 2 | #define DOCTOTEXT_TXT_PARSER_H 3 | 4 | #include 5 | 6 | class TXTParser 7 | { 8 | private: 9 | struct Implementation; 10 | Implementation* impl; 11 | 12 | public: 13 | TXTParser(const std::string& file_name); 14 | TXTParser(const char* buffer, size_t size); 15 | ~TXTParser(); 16 | void setVerboseLogging(bool verbose); 17 | void setLogStream(std::ostream& log_stream); 18 | std::string plainText(); 19 | bool error(); 20 | }; 21 | 22 | #endif 23 | -------------------------------------------------------------------------------- /doc/Doxyfile: -------------------------------------------------------------------------------- 1 | PROJECT_NAME = "SILVERCODERS DocToText" 2 | PROJECT_NUMBER = VERSION 3 | PROJECT_BRIEF = "Converts DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), ODFXML (FODP, FODS, FODT), PDF, EML and HTML documents to plain text. Extracts metadata and annotations." 4 | INPUT = ./mainpage.dox ../src/plain_text_extractor.h ../src/metadata.h ../src/link.h ../src/formatting_style.h ../src/exception.h ../src/doctotext_c_api.h ../src/attachment.h ../src/variant.h 5 | STRIP_FROM_PATH = ../src 6 | GENERATE_LATEX = NO -------------------------------------------------------------------------------- /src/oshared.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_OSHARED_H 2 | #define DOCTOTEXT_OSHARED_H 3 | 4 | #include 5 | 6 | namespace doctotext 7 | { 8 | class Metadata; 9 | } 10 | class ThreadSafeOLEStorage; 11 | 12 | using namespace doctotext; 13 | 14 | bool parse_oshared_summary_info(ThreadSafeOLEStorage& storage, std::ostream& log_stream, Metadata& meta); 15 | bool parse_oshared_document_summary_info(ThreadSafeOLEStorage& storage, std::ostream& log_stream, int& slide_count); 16 | bool get_codepage_from_document_summary_info(ThreadSafeOLEStorage& storage, std::ostream& log_stream, std::string& codepage); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /src/xml_stream.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_XML_STREAM_H 2 | #define DOCTOTEXT_XML_STREAM_H 3 | 4 | #include 5 | 6 | class XmlStream 7 | { 8 | private: 9 | struct Implementation; 10 | Implementation* impl; 11 | 12 | public: 13 | XmlStream(const std::string& xml, bool manage_xml_parser, int xml_parse_options = 0); 14 | ~XmlStream(); 15 | operator bool(); 16 | void next(); 17 | void levelDown(); 18 | void levelUp(); 19 | char* content(); 20 | std::string name(); 21 | std::string fullName(); 22 | std::string stringValue(); 23 | std::string attribute(const std::string& attr_name); 24 | }; 25 | 26 | #endif 27 | 28 | 29 | -------------------------------------------------------------------------------- /update_version.sh: -------------------------------------------------------------------------------- 1 | # Update VERSION file if needed. 2 | branch=`svn info | grep '^URL:' | sed 's|^URL: .*/\(.*\)|\1|'` 3 | if test $branch = "trunk"; then 4 | ver_main="0.0" 5 | else 6 | ver_main=$branch 7 | fi 8 | if test `uname` = "Darwin"; then 9 | base_secs=`date -j -f "%Y %m %d %H %M %S" "2013 12 01 00 00 00" +%s` 10 | else 11 | base_secs=`date -d 20131201 +%s` 12 | fi 13 | now_secs=`date +%s` 14 | ver_build=`expr \( $now_secs - $base_secs \) / 60 / 60` 15 | old_ver="?" 16 | if test -f VERSION; then 17 | old_ver=`cat VERSION` 18 | fi 19 | if test $old_ver != $ver_main.$ver_build; then 20 | printf $ver_main.$ver_build > VERSION 21 | fi 22 | -------------------------------------------------------------------------------- /src/odfxml_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_ODFXML_PARSER_H 2 | #define DOCTOTEXT_ODFXML_PARSER_H 3 | 4 | #include "common_xml_document_parser.h" 5 | 6 | class ODFXMLParser : public CommonXMLDocumentParser 7 | { 8 | private: 9 | struct ExtendedImplementation; 10 | ExtendedImplementation* extended_impl; 11 | class CommandHandlersSet; 12 | 13 | public: 14 | ODFXMLParser(const std::string &file_name); 15 | ODFXMLParser(const char* buffer, size_t size); 16 | ~ODFXMLParser(); 17 | bool isODFXML(); 18 | std::string plainText(XmlParseMode mode, FormattingStyle& formatting_style); 19 | Metadata metaData(); 20 | }; 21 | 22 | #endif 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/odf_ooxml_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_ODFOOXML_PARSER_H 2 | #define DOCTOTEXT_ODFOOXML_PARSER_H 3 | 4 | #include "common_xml_document_parser.h" 5 | 6 | class ODFOOXMLParser : public CommonXMLDocumentParser 7 | { 8 | private: 9 | struct ExtendedImplementation; 10 | ExtendedImplementation* extended_impl; 11 | class CommandHandlersSet; 12 | 13 | public: 14 | ODFOOXMLParser(const std::string &file_name); 15 | ODFOOXMLParser(const char* buffer, size_t size); 16 | ~ODFOOXMLParser(); 17 | bool isODFOOXML(); 18 | std::string plainText(XmlParseMode mode, FormattingStyle& options); 19 | Metadata metaData(); 20 | }; 21 | 22 | #endif 23 | 24 | 25 | -------------------------------------------------------------------------------- /src/rtf_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_RTF_PARSER_H 2 | #define DOCTOTEXT_RTF_PARSER_H 3 | 4 | #include "link.h" 5 | #include 6 | #include 7 | 8 | namespace doctotext 9 | { 10 | class Metadata; 11 | } 12 | using namespace doctotext; 13 | 14 | class RTFParser 15 | { 16 | private: 17 | struct Implementation; 18 | Implementation* impl; 19 | 20 | public: 21 | RTFParser(const std::string& file_name); 22 | RTFParser(const char* buffer, size_t size); 23 | ~RTFParser(); 24 | void setVerboseLogging(bool verbose); 25 | void setLogStream(std::ostream& log_stream); 26 | bool isRTF(); 27 | void getLinks(std::vector& links); 28 | std::string plainText(); 29 | Metadata metaData(); 30 | bool error(); 31 | }; 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /src/doc_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_DOC_PARSER_H 2 | #define DOCTOTEXT_DOC_PARSER_H 3 | 4 | #include "link.h" 5 | #include 6 | #include 7 | 8 | namespace doctotext 9 | { 10 | class FormattingStyle; 11 | class Metadata; 12 | } 13 | 14 | using namespace doctotext; 15 | 16 | class DOCParser 17 | { 18 | private: 19 | struct Implementation; 20 | Implementation* impl; 21 | 22 | public: 23 | DOCParser(const std::string& file_name); 24 | DOCParser(const char* buffer, size_t size); 25 | ~DOCParser(); 26 | void setVerboseLogging(bool verbose); 27 | void setLogStream(std::ostream& log_stream); 28 | bool isDOC(); 29 | void getLinks(std::vector& links); 30 | std::string plainText(const FormattingStyle& formatting); 31 | Metadata metaData(); 32 | bool error(); 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /src/pdf_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_PDF_PARSER_H 2 | #define DOCTOTEXT_PDF_PARSER_H 3 | 4 | #include "link.h" 5 | #include 6 | #include 7 | 8 | namespace doctotext 9 | { 10 | struct FormattingStyle; 11 | class Metadata; 12 | } 13 | 14 | using namespace doctotext; 15 | 16 | class PDFParser 17 | { 18 | private: 19 | struct Implementation; 20 | Implementation* impl; 21 | 22 | public: 23 | PDFParser(const std::string& file_name); 24 | PDFParser(const char* buffer, size_t size); 25 | ~PDFParser(); 26 | void setVerboseLogging(bool verbose); 27 | void setLogStream(std::ostream& log_stream); 28 | bool isPDF(); 29 | void getLinks(std::vector& links); 30 | std::string plainText(const FormattingStyle& formatting); 31 | bool error(); 32 | Metadata metaData(); 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /src/ppt_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_PPT_PARSER_H 2 | #define DOCTOTEXT_PPT_PARSER_H 3 | 4 | #include "link.h" 5 | #include 6 | #include 7 | 8 | namespace doctotext 9 | { 10 | struct FormattingStyle; 11 | struct Metadata; 12 | } 13 | 14 | using namespace doctotext; 15 | 16 | class PPTParser 17 | { 18 | private: 19 | struct Implementation; 20 | Implementation* impl; 21 | 22 | public: 23 | PPTParser(const std::string& file_name); 24 | PPTParser(const char* buffer, size_t size); 25 | ~PPTParser(); 26 | void setVerboseLogging(bool verbose); 27 | void setLogStream(std::ostream& log_stream); 28 | bool isPPT(); 29 | void getLinks(std::vector& links); 30 | std::string plainText(const FormattingStyle& formatting); 31 | Metadata metaData(); 32 | bool error(); 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /src/xlsb_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_XLSB_PARSER_H 2 | #define DOCTOTEXT_XLSB_PARSER_H 3 | 4 | #include "link.h" 5 | #include 6 | #include 7 | 8 | namespace doctotext 9 | { 10 | struct FormattingStyle; 11 | class Metadata; 12 | } 13 | 14 | using namespace doctotext; 15 | 16 | class XLSBParser 17 | { 18 | private: 19 | struct Implementation; 20 | Implementation* impl; 21 | 22 | public: 23 | XLSBParser(const std::string& file_name); 24 | XLSBParser(const char* buffer, size_t size); 25 | ~XLSBParser(); 26 | void setVerboseLogging(bool verbose); 27 | void setLogStream(std::ostream& log_stream); 28 | bool isXLSB(); 29 | void getLinks(std::vector& links); 30 | std::string plainText(const FormattingStyle& formatting); 31 | bool error(); 32 | Metadata metaData(); 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /src/iwork_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_IWORK_PARSER_H 2 | #define DOCTOTEXT_IWORK_PARSER_H 3 | 4 | #include "link.h" 5 | #include 6 | #include 7 | 8 | namespace doctotext 9 | { 10 | struct FormattingStyle; 11 | class Metadata; 12 | } 13 | 14 | using namespace doctotext; 15 | 16 | class IWorkParser 17 | { 18 | private: 19 | struct Implementation; 20 | Implementation* impl; 21 | 22 | public: 23 | IWorkParser(const std::string& file_name); 24 | IWorkParser(const char* buffer, size_t size); 25 | ~IWorkParser(); 26 | void setVerboseLogging(bool verbose); 27 | void setLogStream(std::ostream& log_stream); 28 | bool isIWork(); 29 | void getLinks(std::vector& links); 30 | std::string plainText(const FormattingStyle& formatting); 31 | bool error(); 32 | Metadata metaData(); 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /src/eml_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_EML_PARSER_H 2 | #define DOCTOTEXT_EML_PARSER_H 3 | 4 | #include "link.h" 5 | #include 6 | #include 7 | 8 | namespace doctotext 9 | { 10 | struct FormattingStyle; 11 | class Metadata; 12 | class Attachment; 13 | } 14 | 15 | using namespace doctotext; 16 | 17 | class EMLParser 18 | { 19 | private: 20 | struct Implementation; 21 | Implementation* impl; 22 | 23 | public: 24 | EMLParser(const std::string& file_name); 25 | EMLParser(const char* buffer, size_t size); 26 | ~EMLParser(); 27 | void setVerboseLogging(bool verbose); 28 | void setLogStream(std::ostream& log_stream); 29 | bool isEML(); 30 | void getLinks(std::vector& links); 31 | void getAttachments(std::vector& attachments); 32 | std::string plainText(const FormattingStyle& formatting); 33 | Metadata metaData(); 34 | bool error(); 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /tests/cpp_api_test.cpp: -------------------------------------------------------------------------------- 1 | #include "../build/metadata.h" 2 | #include "../build/plain_text_extractor.h" 3 | 4 | #include 5 | #include 6 | 7 | using namespace doctotext; 8 | 9 | int main(int argc, char* argv[]) 10 | { 11 | std::string file_name; 12 | bool verbose = false; 13 | if (argc == 2) 14 | file_name = argv[1]; 15 | else if (argc == 3 && std::string(argv[1]) == "--verbose") 16 | { 17 | verbose = true; 18 | file_name = argv[2]; 19 | } 20 | else 21 | return 1; 22 | PlainTextExtractor extractor; 23 | extractor.setVerboseLogging(verbose); 24 | Metadata meta; 25 | if (!extractor.extractMetadata(file_name, meta)) 26 | return 1; 27 | std::cout << "Author: " << meta.author() << std::endl; 28 | std::cout << "Last modified by: " << meta.lastModifiedBy() << std::endl; 29 | std::string text; 30 | if (!extractor.processFile(file_name, text)) 31 | return 1; 32 | std::cout << text << std::endl; 33 | return 0; 34 | } 35 | -------------------------------------------------------------------------------- /src/xls_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_XLS_PARSER_H 2 | #define DOCTOTEXT_XLS_PARSER_H 3 | 4 | #include "metadata.h" 5 | #include "link.h" 6 | #include 7 | #include 8 | 9 | namespace doctotext 10 | { 11 | struct FormattingStyle; 12 | } 13 | class ThreadSafeOLEStorage; 14 | 15 | using namespace doctotext; 16 | 17 | class XLSParser 18 | { 19 | private: 20 | struct Implementation; 21 | Implementation* impl; 22 | 23 | public: 24 | XLSParser(const std::string& file_name); 25 | XLSParser(const char* buffer, size_t size); 26 | ~XLSParser(); 27 | void setVerboseLogging(bool verbose); 28 | void setLogStream(std::ostream& log_stream); 29 | bool isXLS(); 30 | void getLinks(std::vector& links); 31 | std::string plainText(const FormattingStyle& formatting); 32 | std::string plainText(ThreadSafeOLEStorage& storage, const FormattingStyle& formatting); 33 | Metadata metaData(); 34 | bool error(); 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /src/html_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_HTML_PARSER_H 2 | #define DOCTOTEXT_HTML_PARSER_H 3 | 4 | #include "link.h" 5 | #include 6 | #include 7 | 8 | namespace doctotext 9 | { 10 | struct FormattingStyle; 11 | class Metadata; 12 | } 13 | 14 | using namespace doctotext; 15 | 16 | class HTMLParser 17 | { 18 | private: 19 | struct Implementation; 20 | Implementation* impl; 21 | 22 | public: 23 | HTMLParser(const std::string& file_name); 24 | HTMLParser(const char* buffer, size_t size); 25 | ~HTMLParser(); 26 | void setVerboseLogging(bool verbose); 27 | void setLogStream(std::ostream& log_stream); 28 | bool isHTML(); 29 | void getLinks(std::vector& links); 30 | std::string plainText(const FormattingStyle& formatting); 31 | Metadata metaData(); 32 | ///turns off charset decoding. It may be useful, if we want to decode data ourself (EML parser is an example). 33 | void skipCharsetDecoding(); 34 | bool error(); 35 | }; 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /3rdparty/pdf_font_metrics.txt: -------------------------------------------------------------------------------- 1 | Binary distribution of doctotext contains informations about 14 core fonts from Adobe. 2 | Those data was obtained here: 3 | http://www.ctan.org/tex-archive/fonts/adobe/afm/ 4 | 5 | Font metrics are used by PDF parser to compute the boundary of each character 6 | written with a proportional font. 7 | 8 | BEGIN Verbatim copy of the license part 9 | 10 | Adobe Core 35 AFM Files with 229 Glyph Entries - ReadMe 11 | 12 | This file and the 35 PostScript(R) AFM files it accompanies may be 13 | used, copied, and distributed for any purpose and without charge, 14 | with or without modification, provided that all copyright notices 15 | are retained; that the AFM files are not distributed without this 16 | file; that all modifications to this file or any of the AFM files 17 | are prominently noted in the modified file(s); and that this 18 | paragraph is not modified. Adobe Systems has no responsibility or 19 | obligation to support the use of the AFM files. 20 | 21 | 22 | END Verbatim copy of the license part 23 | -------------------------------------------------------------------------------- /3rdparty/resources/pdf_font_metrics.txt: -------------------------------------------------------------------------------- 1 | Binary distribution of doctotext contains informations about 14 core fonts from Adobe. 2 | Those data was obtained here: 3 | http://www.ctan.org/tex-archive/fonts/adobe/afm/ 4 | 5 | Font metrics are used by PDF parser to compute the boundary of each character 6 | written with a proportional font. 7 | 8 | BEGIN Verbatim copy of the license part 9 | 10 | Adobe Core 35 AFM Files with 229 Glyph Entries - ReadMe 11 | 12 | This file and the 35 PostScript(R) AFM files it accompanies may be 13 | used, copied, and distributed for any purpose and without charge, 14 | with or without modification, provided that all copyright notices 15 | are retained; that the AFM files are not distributed without this 16 | file; that all modifications to this file or any of the AFM files 17 | are prominently noted in the modified file(s); and that this 18 | paragraph is not modified. Adobe Systems has no responsibility or 19 | obligation to support the use of the AFM files. 20 | 21 | 22 | END Verbatim copy of the license part 23 | -------------------------------------------------------------------------------- /src/formatting_style.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_FORMATTING_STYLE_H 2 | #define DOCTOTEXT_FORMATTING_STYLE_H 3 | 4 | #include 5 | 6 | namespace doctotext 7 | { 8 | enum TableStyle { TABLE_STYLE_TABLE_LOOK, TABLE_STYLE_ONE_ROW, TABLE_STYLE_ONE_COL, }; 9 | enum UrlStyle { URL_STYLE_TEXT_ONLY, URL_STYLE_EXTENDED, URL_STYLE_UNDERSCORED, }; 10 | 11 | class ListStyle 12 | { 13 | private: 14 | struct Implementation; 15 | Implementation* m_impl; 16 | 17 | public: 18 | ListStyle(); 19 | ~ListStyle(); 20 | ListStyle(const ListStyle& style); 21 | ListStyle& operator = (const ListStyle& style); 22 | ///Sets leading characters for each position in the list. prefix must be a value encoded in UTF8. Default value: empty string (no prefix) 23 | void setPrefix(const std::string& prefix); 24 | void setPrefix(const char* prefix); 25 | const char* getPrefix() const; 26 | }; 27 | 28 | struct FormattingStyle 29 | { 30 | TableStyle table_style; 31 | UrlStyle url_style; 32 | ListStyle list_style; 33 | }; 34 | 35 | enum XmlParseMode { PARSE_XML, FIX_XML, STRIP_XML }; 36 | } 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /src/thread_safe_ole_storage.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_THREAD_SAFE_OLE_STORAGE_H 2 | #define DOCTOTEXT_THREAD_SAFE_OLE_STORAGE_H 3 | 4 | #include 5 | #include 6 | #include "wv2/olestorage.h" 7 | 8 | class ThreadSafeOLEStreamReader; 9 | using namespace wvWare; 10 | 11 | class ThreadSafeOLEStorage : public AbstractOLEStorage 12 | { 13 | private: 14 | struct Implementation; 15 | Implementation* impl; 16 | public: 17 | ThreadSafeOLEStorage(const std::string& file_name); 18 | ThreadSafeOLEStorage(const char* buffer, size_t len); 19 | ~ThreadSafeOLEStorage(); 20 | bool isValid() const; 21 | bool open(Mode mode); 22 | void close(); 23 | std::string name() const; 24 | std::string getLastError(); 25 | bool getStreamsAndStoragesList(std::vector& components); 26 | std::string getCurrentDirectory(); 27 | bool enterDirectory(const std::string& directory_path); 28 | bool leaveDirectory(); 29 | bool readDirectFromBuffer(unsigned char* buffer, int size, int offset); 30 | AbstractOLEStreamReader* createStreamReader(const std::string& stream_path); 31 | private: 32 | void streamDestroyed(OLEStream* stream); 33 | }; 34 | 35 | #endif // DOCTOTEXT_THREAD_SAFE_OLE_STORAGE_H 36 | -------------------------------------------------------------------------------- /src/doctotext_unzip.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_UNZIP_H 2 | #define DOCTOTEXT_UNZIP_H 3 | 4 | #include 5 | 6 | class DocToTextUnzip 7 | { 8 | private: 9 | struct Implementation; 10 | Implementation* Impl; 11 | 12 | public: 13 | DocToTextUnzip(); 14 | DocToTextUnzip(const std::string& archive_file_name); 15 | DocToTextUnzip(const char* buffer, size_t size); 16 | void setArchiveFile(const std::string& archive_file_name); 17 | void setBuffer(const char* buffer, size_t size); 18 | ~DocToTextUnzip(); 19 | void setLogStream(std::ostream& log_stream); 20 | static void setUnzipCommand(const std::string& command); 21 | bool open(); 22 | void close(); 23 | bool exists(const std::string& file_name) const; 24 | bool read(const std::string& file_name, std::string* contents, int num_of_chars = 0) const; 25 | bool getFileSize(const std::string& file_name, unsigned long& file_size) const; 26 | bool readChunk(const std::string& file_name, std::string* contents, int chunk_size) const; 27 | bool readChunk(const std::string& file_name, char* contents, int chunk_size, int& readed) const; 28 | void closeReadingFileForChunks() const; 29 | /** 30 | Load and cache zip file directory. Speed up locating files dramatically. Use before multiple read() calls. 31 | **/ 32 | bool loadDirectory(); 33 | }; 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /src/thread_safe_ole_stream_reader.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_THREAD_SAFE_OLE_STREAM_READER_H 2 | #define DOCTOTEXT_THREAD_SAFE_OLE_STREAM_READER_H 3 | 4 | #include 5 | #include 6 | #include 7 | #include 8 | #include "wv2/olestream.h" 9 | 10 | class ThreadSafeOLEStorage; 11 | using namespace wvWare; 12 | class DataStream; 13 | 14 | class ThreadSafeOLEStreamReader : public AbstractOLEStreamReader 15 | { 16 | friend class ThreadSafeOLEStorage; 17 | private: 18 | struct Implementation; 19 | Implementation* impl; 20 | struct Stream 21 | { 22 | uint64_t m_size; 23 | std::vector m_file_positions; 24 | uint32_t m_sector_size; 25 | DataStream* m_data_stream; 26 | }; 27 | ThreadSafeOLEStreamReader(ThreadSafeOLEStorage* storage, Stream& stream); 28 | public: 29 | ~ThreadSafeOLEStreamReader(); 30 | std::string getLastError(); 31 | bool isValid() const; 32 | int tell() const; 33 | size_t size() const; 34 | bool seek(int offset, int whence = SEEK_SET); 35 | bool readU8(U8& data); 36 | U8 readU8(); 37 | bool readS8(S8& data); 38 | S8 readS8(); 39 | bool readU16(U16& data); 40 | U16 readU16(); 41 | bool readS16(S16& data); 42 | S16 readS16(); 43 | bool readU32(U32& data); 44 | U32 readU32(); 45 | bool readS32(S32& data); 46 | S32 readS32(); 47 | bool read(U8 *buffer, size_t length); 48 | }; 49 | 50 | #endif // DOCTOTEXT_THREAD_SAFE_OLE_STREAM_READER_H 51 | -------------------------------------------------------------------------------- /src/link.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_LINK_H 2 | #define DOCTOTEXT_LINK_H 3 | 4 | #include 5 | 6 | namespace doctotext 7 | { 8 | /** 9 | Structure of the link in parsed file. 10 | Example: 11 | Suppose that content of example.html is: "text before link link text after link". 12 | As the result, example.html will contain one link. We are using URL_STYLE_TEXT_ONLY style. 13 | The result of the parsing this file is: "text before link link text after link". 14 | We should obtain one link with the following values: 15 | getLinkUrl() returs word "target". 16 | getLinkText() returns word "link". 17 | getLinkTextSize() returns 4 (because word "link" has four characters). 18 | getLinkTextPosition() returns 17 (because lenght of "text before link " is 17). 19 | **/ 20 | class Link 21 | { 22 | private: 23 | struct Implementation; 24 | Implementation* impl; 25 | 26 | public: 27 | Link(); 28 | Link(const std::string& link_url, const std::string& link_text, size_t link_text_position); 29 | Link(const Link& link); 30 | ~Link(); 31 | Link& operator = (const Link& link); 32 | void setLinkText(const std::string& link_text); 33 | void setLinkUrl(const std::string& link_url); 34 | void setLinkTextPosition(size_t link_text_position); 35 | const char* getLinkUrl() const; 36 | const char* getLinkText() const; 37 | size_t getLinkTextPosition() const; 38 | }; 39 | } 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /src/attachment.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_ATTACHMENT_H 2 | #define DOCTOTEXT_ATTACHMENT_H 3 | 4 | #include 5 | #include 6 | #include "variant.h" 7 | 8 | namespace doctotext 9 | { 10 | /** 11 | Structure of the attachment in parsed file. 12 | If parsed file has an attachments, PlainTextExtractor will try to get them. 13 | Attachment is usually another file. Another thing worth mentioning is that attachments may hold 14 | metadada. 15 | **/ 16 | class Attachment 17 | { 18 | private: 19 | struct Implementation; 20 | Implementation* impl; 21 | 22 | public: 23 | Attachment(); 24 | Attachment(const std::string& file_name); 25 | Attachment(const Attachment& attachment); 26 | Attachment& operator = (const Attachment& attachment); 27 | ~Attachment(); 28 | void setFileName(const std::string& file_name); 29 | void setBinaryContent(const std::string& binary_content); 30 | void addField(const std::string& field_name, const Variant& field_value); 31 | 32 | ///Gets attachment file name 33 | const char* filename() const; 34 | 35 | ///Gets binary content of the attachment 36 | const char* binaryContent() const; 37 | 38 | ///Returns size of the binary content 39 | size_t binaryContentSize() const; 40 | 41 | ///Checks if metadata for given key exist (for example "Content-Type") 42 | bool hasField(const std::string& field_name) const; 43 | 44 | ///Returns value for given key (metadata) 45 | const Variant& getField(const std::string& field_name) const; 46 | 47 | ///Returns map with all keys and values 48 | const std::map& getFields() const; 49 | }; 50 | } 51 | 52 | #endif 53 | -------------------------------------------------------------------------------- /src/data_stream.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_DATA_STREAM_H 2 | #define DOCTOTEXT_DATA_STREAM_H 3 | 4 | #include 5 | #include 6 | 7 | class DataStream 8 | { 9 | public: 10 | virtual ~DataStream(){} 11 | virtual bool open() = 0; 12 | virtual bool close() = 0; 13 | virtual bool read(void* data, int element_size, size_t elements_num) = 0; 14 | virtual bool seek(int offset, int whence) = 0; 15 | virtual bool eof() = 0; 16 | virtual int getc() = 0; 17 | virtual bool unGetc(int ch) = 0; 18 | virtual size_t size() = 0; 19 | virtual size_t tell() = 0; 20 | virtual std::string name() = 0; 21 | virtual DataStream* clone() = 0; 22 | }; 23 | 24 | class FileStream : public DataStream 25 | { 26 | struct Implementation; 27 | Implementation* impl; 28 | public: 29 | FileStream(const std::string& file_name); 30 | ~FileStream(); 31 | bool open(); 32 | bool close(); 33 | bool read(void* data, int element_size, size_t elements_num); 34 | bool seek(int offset, int whence); 35 | bool eof(); 36 | int getc(); 37 | bool unGetc(int ch); 38 | size_t size(); 39 | size_t tell(); 40 | std::string name(); 41 | DataStream* clone(); 42 | }; 43 | 44 | class BufferStream : public DataStream 45 | { 46 | struct Implementation; 47 | Implementation* impl; 48 | public: 49 | BufferStream(const char* buffer, size_t size); 50 | ~BufferStream(); 51 | bool open(); 52 | bool close(); 53 | bool read(void* data, int element_size, size_t elements_num); 54 | bool seek(int offset, int whence); 55 | bool eof(); 56 | int getc(); 57 | bool unGetc(int ch); 58 | size_t size(); 59 | size_t tell(); 60 | std::string name(); 61 | DataStream* clone(); 62 | }; 63 | 64 | #endif //DOCTOTEXT_DATA_STREAM_H 65 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** DocToText - Converts DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), 4 | ** OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), 5 | ** ODFXML (FODP, FODS, FODT), PDF, EML and HTML documents to plain text. 6 | ** Extracts metadata and annotations. 7 | ** 8 | ** Copyright (c) 2006-2013, SILVERCODERS(R) 9 | ** http://silvercoders.com 10 | ** 11 | ** Project homepage: http://silvercoders.com/en/products/doctotext 12 | ** 13 | ** This program may be distributed and/or modified under the terms of the 14 | ** GNU General Public License version 2 as published by the Free Software 15 | ** Foundation and appearing in the file COPYING.GPL included in the 16 | ** packaging of this file. 17 | ** 18 | ** Please remember that any attempt to workaround the GNU General Public 19 | ** License using wrappers, pipes, client/server protocols, and so on 20 | ** is considered as license violation. If your program, published on license 21 | ** other than GNU General Public License version 2, calls some part of this 22 | ** code directly or indirectly, you have to buy commercial license. 23 | ** If you do not like our point of view, simply do not use the product. 24 | ** 25 | ** Licensees holding valid commercial license for this product 26 | ** may use this file in accordance with the license published by 27 | ** SILVERCODERS and appearing in the file COPYING.COM 28 | ** 29 | ** This program is distributed in the hope that it will be useful, 30 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 31 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32 | ** 33 | *****************************************************************************/ 34 | -------------------------------------------------------------------------------- /src/metadata.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_METADATA_H 2 | #define DOCTOTEXT_METADATA_H 3 | 4 | #include 5 | #include 6 | #include "variant.h" 7 | 8 | namespace doctotext 9 | { 10 | class Metadata 11 | { 12 | private: 13 | struct Implementation; 14 | Implementation* impl; 15 | 16 | public: 17 | enum DataType { NONE, EXTRACTED, ESTIMATED }; 18 | Metadata(); 19 | Metadata(const Metadata& r); 20 | ~Metadata(); 21 | Metadata& operator=(const Metadata& r); 22 | 23 | DataType authorType(); 24 | void setAuthorType(DataType type); 25 | 26 | const char* author(); 27 | void setAuthor(const std::string& author); 28 | 29 | DataType creationDateType(); 30 | void setCreationDateType(DataType type); 31 | 32 | const tm& creationDate(); 33 | void setCreationDate(const tm& creation_date); 34 | 35 | DataType lastModifiedByType(); 36 | void setLastModifiedByType(DataType type); 37 | 38 | const char* lastModifiedBy(); 39 | void setLastModifiedBy(const std::string& last_modified_by); 40 | 41 | DataType lastModificationDateType(); 42 | void setLastModificationDateType(DataType type); 43 | 44 | const tm& lastModificationDate(); 45 | void setLastModificationDate(const tm& last_modification_date); 46 | 47 | DataType pageCountType(); 48 | void setPageCountType(DataType type); 49 | 50 | int pageCount(); 51 | void setPageCount(int page_count); 52 | 53 | DataType wordCountType(); 54 | void setWordCountType(DataType type); 55 | 56 | int wordCount(); 57 | void setWordCount(int word_count); 58 | 59 | void addField(const std::string& field_name, const Variant& field_value); 60 | bool hasField(const std::string& field_name) const; 61 | const Variant& getField(const std::string& field_name) const; 62 | 63 | const std::map& getFields() const; 64 | }; 65 | } 66 | 67 | #endif 68 | -------------------------------------------------------------------------------- /tests/multithreading_test.cpp: -------------------------------------------------------------------------------- 1 | #include "../build/metadata.h" 2 | #include "../build/plain_text_extractor.h" 3 | #include 4 | #include "pthread.h" 5 | #include 6 | #include 7 | 8 | using namespace doctotext; 9 | 10 | bool verbose; 11 | 12 | void* thread_func(void* data) 13 | { 14 | std::string* file_name = (std::string*)data; 15 | PlainTextExtractor extractor; 16 | extractor.setVerboseLogging(verbose); 17 | Metadata meta; 18 | if (!extractor.extractMetadata(*file_name, meta)) 19 | return new bool(false); 20 | std::cout << "Author: " << meta.author() << std::endl; 21 | std::cout << "Last modified by: " << meta.lastModifiedBy() << std::endl; 22 | std::string text; 23 | if (!extractor.processFile(*file_name, text)) 24 | return new bool(false); 25 | std::cout << text << std::endl; 26 | pthread_exit(NULL); 27 | } 28 | 29 | int main(int argc, char* argv[]) 30 | { 31 | std::vector file_names; 32 | verbose = false; 33 | if (argc >= 3 && std::string(argv[1]) == "--verbose") 34 | { 35 | verbose = true; 36 | for (int i = 2; i < argc; i++) 37 | file_names.push_back(argv[i]); 38 | } 39 | else if (argc >= 2) 40 | { 41 | for (int i = 1; i < argc; i++) 42 | file_names.push_back(argv[i]); 43 | } 44 | else 45 | return 1; 46 | std::vector threads; 47 | pthread_t thread; 48 | for (int i = 0; i < file_names.size(); i++) 49 | { 50 | std::cerr << "Starting thread " << i << std::endl; 51 | int res = pthread_create(&thread, NULL, thread_func, (void*)&file_names[i]); 52 | if (res) 53 | { 54 | std::cerr << "Error creating thread: " << res << "\n"; 55 | return 1; 56 | } 57 | threads.push_back(thread); 58 | } 59 | bool all_ok = true; 60 | for (int i = 0; i < threads.size(); i++) 61 | { 62 | void *status; 63 | int res = pthread_join(threads[i], &status); 64 | if (!res) 65 | std::cerr << "Thread " << i << " finished successfully." << std::endl; 66 | else 67 | { 68 | std::cerr << "Thread " << i << " finished with error." << std::endl; 69 | all_ok = false; 70 | } 71 | } 72 | return (all_ok ? 0 : 1); 73 | } 74 | -------------------------------------------------------------------------------- /src/exception.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_EXCEPTION_H 2 | #define DOCTOTEXT_EXCEPTION_H 3 | 4 | #include 5 | #include 6 | #include 7 | 8 | namespace doctotext 9 | { 10 | /** 11 | This class is implementation of std::exception, which is used by DocToText. 12 | In this implementation, errors can be formed in "stack". 13 | 14 | In order to create exception just call: 15 | \code 16 | throw Exception("First error"); 17 | \endcode 18 | 19 | You can catch exception and add one more error: 20 | \code 21 | catch (Exception& ex) 22 | { 23 | ex.appendError("Next error message"); 24 | throw; 25 | } 26 | \endcode 27 | 28 | or you can catch exception and get "backtrace": 29 | \code 30 | catch (Exception& ex) 31 | { 32 | std::cerr << ex.getBacktrace(); 33 | } 34 | \endcode 35 | **/ 36 | class Exception : public std::exception 37 | { 38 | private: 39 | struct Implementation; 40 | Implementation* impl; 41 | 42 | public: 43 | 44 | Exception() throw(); 45 | 46 | /** 47 | The constructor. 48 | \param first_error_message first error message (gives information about cause of an error). 49 | **/ 50 | Exception(const std::string& first_error_message) throw(); 51 | 52 | Exception(const Exception& ex) throw(); 53 | 54 | ~Exception() throw(); 55 | 56 | Exception& operator = (const Exception& ex) throw(); 57 | 58 | const char* what(){ return "doctotext_exception"; } 59 | 60 | /** 61 | returns a string with all error messages. Each error message is separated by "\n". 62 | Suppose we have thrown an exception: 63 | \code 64 | throw Exception("First error message"); 65 | \endcode 66 | Next, we have added one more error: 67 | \code 68 | ex.appendError("Second error message"); 69 | \endcode 70 | In the result getBacktrace will return a string: "First error message\nSecond error message\n" 71 | **/ 72 | std::string getBacktrace(); 73 | 74 | /** 75 | Adds one more error message. 76 | **/ 77 | void appendError(const std::string& error_message); 78 | 79 | /** 80 | returns a iterator to the first error message 81 | **/ 82 | std::list::iterator getErrorIterator() const; 83 | 84 | /** 85 | Returns a number of error messages 86 | **/ 87 | size_t getErrorCount() const; 88 | }; 89 | } 90 | 91 | #endif 92 | -------------------------------------------------------------------------------- /src/variant.h: -------------------------------------------------------------------------------- 1 | #ifndef DOCTOTEXT_VARIANT_H 2 | #define DOCTOTEXT_VARIANT_H 3 | 4 | #include 5 | #include 6 | 7 | namespace doctotext 8 | { 9 | /** 10 | Variant is an object which can represent unsigned number, date or string. 11 | Uninitialized object represents 'null'. 12 | **/ 13 | class Variant 14 | { 15 | private: 16 | struct Implementation; 17 | Implementation* impl; 18 | 19 | public: 20 | 21 | ///Creates uninitialized object (represents null) 22 | Variant(); 23 | 24 | ///Creates object which represents string 25 | Variant(const std::string& value); 26 | 27 | ///Creates object which represents date 28 | Variant(const tm& value); 29 | 30 | ///Creates object which represents unsigned number 31 | Variant(size_t value); 32 | 33 | ///Creates a copy of another Variant 34 | Variant(const Variant& variant); 35 | ~Variant(); 36 | Variant& operator = (const Variant& variant); 37 | 38 | ///Sets unsigned number value. From this moment, Variant represents unsigned number. 39 | void setValue(size_t number); 40 | 41 | ///Sets date value. From this moment, Variant represents date. 42 | void setValue(const tm& date_time); 43 | 44 | ///Sets string value. From this moment, Variant represents string. 45 | void setValue(const std::string& str); 46 | 47 | ///If Variant has not been initialized with number/date/string, this method returns value true 48 | bool isEmpty() const; 49 | 50 | ///Checks if Variant represents a string 51 | bool isString() const; 52 | 53 | ///Checks if Variant represents a number 54 | bool isNumber() const; 55 | 56 | ///Checks if Variant represents a date 57 | bool isDateTime() const; 58 | 59 | /** 60 | If Variant is a date, this method returns const reference to tm object. But if it is not 61 | a date, struct tm can be filled with undefined numbers (usually zeros) 62 | **/ 63 | const tm& getDateTime() const; 64 | 65 | /** 66 | Returns string value. If Variant is a string, then string is returned (simple). But if variant represents 67 | number or a date, proper value is converted to the string. If variant has no value (represents null), 68 | empty string is returned. 69 | **/ 70 | const char* getString() const; 71 | 72 | /** 73 | If Variant is a number, then number which is inside this object is returned. In other cases, 74 | returned number may be undefined (usually 0). 75 | **/ 76 | size_t getNumber() const; 77 | }; 78 | } 79 | 80 | #endif 81 | -------------------------------------------------------------------------------- /src/list_style.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** DocToText - Converts DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), 4 | ** OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), 5 | ** ODFXML (FODP, FODS, FODT), PDF, EML and HTML documents to plain text. 6 | ** Extracts metadata and annotations. 7 | ** 8 | ** Copyright (c) 2006-2013, SILVERCODERS(R) 9 | ** http://silvercoders.com 10 | ** 11 | ** Project homepage: http://silvercoders.com/en/products/doctotext 12 | ** 13 | ** This program may be distributed and/or modified under the terms of the 14 | ** GNU General Public License version 2 as published by the Free Software 15 | ** Foundation and appearing in the file COPYING.GPL included in the 16 | ** packaging of this file. 17 | ** 18 | ** Please remember that any attempt to workaround the GNU General Public 19 | ** License using wrappers, pipes, client/server protocols, and so on 20 | ** is considered as license violation. If your program, published on license 21 | ** other than GNU General Public License version 2, calls some part of this 22 | ** code directly or indirectly, you have to buy commercial license. 23 | ** If you do not like our point of view, simply do not use the product. 24 | ** 25 | ** Licensees holding valid commercial license for this product 26 | ** may use this file in accordance with the license published by 27 | ** SILVERCODERS and appearing in the file COPYING.COM 28 | ** 29 | ** This program is distributed in the hope that it will be useful, 30 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 31 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32 | ** 33 | *****************************************************************************/ 34 | 35 | #include "formatting_style.h" 36 | 37 | using namespace doctotext; 38 | 39 | struct ListStyle::Implementation 40 | { 41 | std::string m_list_leading_characters; 42 | }; 43 | 44 | ListStyle::ListStyle() 45 | { 46 | m_impl = new Implementation; 47 | } 48 | 49 | ListStyle::ListStyle(const ListStyle& style) 50 | { 51 | m_impl = new Implementation; 52 | m_impl->m_list_leading_characters = std::string(style.getPrefix()); 53 | } 54 | 55 | ListStyle& ListStyle::operator = (const ListStyle& style) 56 | { 57 | m_impl->m_list_leading_characters = std::string(style.getPrefix()); 58 | return *this; 59 | } 60 | 61 | ListStyle::~ListStyle() 62 | { 63 | delete m_impl; 64 | } 65 | 66 | void ListStyle::setPrefix(const std::string &prefix) 67 | { 68 | m_impl->m_list_leading_characters = prefix; 69 | } 70 | 71 | void ListStyle::setPrefix(const char *prefix) 72 | { 73 | m_impl->m_list_leading_characters = std::string(prefix); 74 | } 75 | 76 | const char* ListStyle::getPrefix() const 77 | { 78 | return m_impl->m_list_leading_characters.c_str(); 79 | } 80 | -------------------------------------------------------------------------------- /3rdparty/resources/CNS2-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (CNS2-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (CNS2-H) 6 | %%BeginResource: CMap (CNS2-V) 7 | %%Title: (CNS2-V Adobe CNS1 0) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /CNS2-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /CNS2-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 950 def 66 | /XUID [1 10 25387] def 67 | 68 | /WMode 1 def 69 | 70 | endcmap 71 | CMapName currentdict /CMap defineresource pop 72 | end 73 | end 74 | 75 | %%EndResource 76 | %%EOF 77 | -------------------------------------------------------------------------------- /3rdparty/resources/Roman: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%IncludeResource: ProcSet (CIDInit) 4 | %%BeginResource: CMap (Roman) 5 | %%Title: (Roman Adobe Japan1 0) 6 | %%Version: 10.003 7 | %%Copyright: ----------------------------------------------------------- 8 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 9 | %%Copyright: All rights reserved. 10 | %%Copyright: 11 | %%Copyright: Redistribution and use in source and binary forms, with or 12 | %%Copyright: without modification, are permitted provided that the 13 | %%Copyright: following conditions are met: 14 | %%Copyright: 15 | %%Copyright: Redistributions of source code must retain the above 16 | %%Copyright: copyright notice, this list of conditions and the following 17 | %%Copyright: disclaimer. 18 | %%Copyright: 19 | %%Copyright: Redistributions in binary form must reproduce the above 20 | %%Copyright: copyright notice, this list of conditions and the following 21 | %%Copyright: disclaimer in the documentation and/or other materials 22 | %%Copyright: provided with the distribution. 23 | %%Copyright: 24 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 25 | %%Copyright: of its contributors may be used to endorse or promote 26 | %%Copyright: products derived from this software without specific prior 27 | %%Copyright: written permission. 28 | %%Copyright: 29 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 30 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 31 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 32 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 33 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 34 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 35 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 36 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 37 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 39 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 40 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 41 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 | %%Copyright: ----------------------------------------------------------- 43 | %%EndComments 44 | 45 | /CIDInit /ProcSet findresource begin 46 | 47 | 12 dict begin 48 | 49 | begincmap 50 | 51 | /CIDSystemInfo 3 dict dup begin 52 | /Registry (Adobe) def 53 | /Ordering (Japan1) def 54 | /Supplement 0 def 55 | end def 56 | 57 | /CMapName /Roman def 58 | /CMapVersion 10.003 def 59 | /CMapType 1 def 60 | 61 | /UIDOffset 866 def 62 | /XUID [1 10 25351] def 63 | 64 | /WMode 0 def 65 | 66 | 1 begincodespacerange 67 | <00> 68 | endcodespacerange 69 | 70 | 1 begincidrange 71 | <20> <7e> 231 72 | endcidrange 73 | endcmap 74 | CMapName currentdict /CMap defineresource pop 75 | end 76 | end 77 | 78 | %%EndResource 79 | %%EOF 80 | -------------------------------------------------------------------------------- /3rdparty/resources/Katakana: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%IncludeResource: ProcSet (CIDInit) 4 | %%BeginResource: CMap (Katakana) 5 | %%Title: (Katakana Adobe Japan1 0) 6 | %%Version: 10.003 7 | %%Copyright: ----------------------------------------------------------- 8 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 9 | %%Copyright: All rights reserved. 10 | %%Copyright: 11 | %%Copyright: Redistribution and use in source and binary forms, with or 12 | %%Copyright: without modification, are permitted provided that the 13 | %%Copyright: following conditions are met: 14 | %%Copyright: 15 | %%Copyright: Redistributions of source code must retain the above 16 | %%Copyright: copyright notice, this list of conditions and the following 17 | %%Copyright: disclaimer. 18 | %%Copyright: 19 | %%Copyright: Redistributions in binary form must reproduce the above 20 | %%Copyright: copyright notice, this list of conditions and the following 21 | %%Copyright: disclaimer in the documentation and/or other materials 22 | %%Copyright: provided with the distribution. 23 | %%Copyright: 24 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 25 | %%Copyright: of its contributors may be used to endorse or promote 26 | %%Copyright: products derived from this software without specific prior 27 | %%Copyright: written permission. 28 | %%Copyright: 29 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 30 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 31 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 32 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 33 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 34 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 35 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 36 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 37 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 39 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 40 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 41 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 | %%Copyright: ----------------------------------------------------------- 43 | %%EndComments 44 | 45 | /CIDInit /ProcSet findresource begin 46 | 47 | 12 dict begin 48 | 49 | begincmap 50 | 51 | /CIDSystemInfo 3 dict dup begin 52 | /Registry (Adobe) def 53 | /Ordering (Japan1) def 54 | /Supplement 0 def 55 | end def 56 | 57 | /CMapName /Katakana def 58 | /CMapVersion 10.003 def 59 | /CMapType 1 def 60 | 61 | /UIDOffset 864 def 62 | /XUID [1 10 25350] def 63 | 64 | /WMode 0 def 65 | 66 | 1 begincodespacerange 67 | <00> 68 | endcodespacerange 69 | 70 | 2 begincidrange 71 | <20> <5f> 326 72 | <60> <7e> 391 73 | endcidrange 74 | endcmap 75 | CMapName currentdict /CMap defineresource pop 76 | end 77 | end 78 | 79 | %%EndResource 80 | %%EOF 81 | -------------------------------------------------------------------------------- /3rdparty/resources/ETenms-B5-H: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (ETen-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (ETen-B5-H) 6 | %%BeginResource: CMap (ETenms-B5-H) 7 | %%Title: (ETenms-B5-H Adobe CNS1 0) 8 | %%Version: 10.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /ETen-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /ETenms-B5-H def 62 | /CMapVersion 10.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25596] def 66 | 67 | /WMode 0 def 68 | 69 | 1 begincidrange 70 | <20> <7e> 1 71 | endcidrange 72 | 73 | endcmap 74 | CMapName currentdict /CMap defineresource pop 75 | end 76 | end 77 | 78 | %%EndResource 79 | %%EOF 80 | -------------------------------------------------------------------------------- /3rdparty/resources/Hiragana: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%IncludeResource: ProcSet (CIDInit) 4 | %%BeginResource: CMap (Hiragana) 5 | %%Title: (Hiragana Adobe Japan1 0) 6 | %%Version: 10.003 7 | %%Copyright: ----------------------------------------------------------- 8 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 9 | %%Copyright: All rights reserved. 10 | %%Copyright: 11 | %%Copyright: Redistribution and use in source and binary forms, with or 12 | %%Copyright: without modification, are permitted provided that the 13 | %%Copyright: following conditions are met: 14 | %%Copyright: 15 | %%Copyright: Redistributions of source code must retain the above 16 | %%Copyright: copyright notice, this list of conditions and the following 17 | %%Copyright: disclaimer. 18 | %%Copyright: 19 | %%Copyright: Redistributions in binary form must reproduce the above 20 | %%Copyright: copyright notice, this list of conditions and the following 21 | %%Copyright: disclaimer in the documentation and/or other materials 22 | %%Copyright: provided with the distribution. 23 | %%Copyright: 24 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 25 | %%Copyright: of its contributors may be used to endorse or promote 26 | %%Copyright: products derived from this software without specific prior 27 | %%Copyright: written permission. 28 | %%Copyright: 29 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 30 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 31 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 32 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 33 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 34 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 35 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 36 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 37 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 39 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 40 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 41 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 | %%Copyright: ----------------------------------------------------------- 43 | %%EndComments 44 | 45 | /CIDInit /ProcSet findresource begin 46 | 47 | 12 dict begin 48 | 49 | begincmap 50 | 51 | /CIDSystemInfo 3 dict dup begin 52 | /Registry (Adobe) def 53 | /Ordering (Japan1) def 54 | /Supplement 0 def 55 | end def 56 | 57 | /CMapName /Hiragana def 58 | /CMapVersion 10.003 def 59 | /CMapType 1 def 60 | 61 | /UIDOffset 862 def 62 | /XUID [1 10 25349] def 63 | 64 | /WMode 0 def 65 | 66 | 1 begincodespacerange 67 | <00> 68 | endcodespacerange 69 | 70 | 8 begincidrange 71 | <20> <20> 515 72 | <21> <25> 327 73 | <26> <2f> 516 74 | <30> <30> 342 75 | <31> <5d> 526 76 | <5e> <5f> 388 77 | <60> <62> 571 78 | <66> <7e> 574 79 | endcidrange 80 | endcmap 81 | CMapName currentdict /CMap defineresource pop 82 | end 83 | end 84 | 85 | %%EndResource 86 | %%EOF 87 | -------------------------------------------------------------------------------- /3rdparty/resources/UniJIS-UCS2-HW-H: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniJIS-UCS2-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniJIS-UCS2-H) 6 | %%BeginResource: CMap (UniJIS-UCS2-HW-H) 7 | %%Title: (UniJIS-UCS2-HW-H Adobe Japan1 4) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniJIS-UCS2-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Japan1) def 58 | /Supplement 4 def 59 | end def 60 | 61 | /CMapName /UniJIS-UCS2-HW-H def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25448] def 66 | 67 | /WMode 0 def 68 | 69 | 4 begincidrange 70 | <0020> <005b> 231 71 | <005c> <005c> 8719 72 | <005d> <007e> 292 73 | <00a5> <00a5> 291 74 | endcidrange 75 | endcmap 76 | CMapName currentdict /CMap defineresource pop 77 | end 78 | end 79 | 80 | %%EndResource 81 | %%EOF 82 | -------------------------------------------------------------------------------- /3rdparty/resources/Hankaku: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%IncludeResource: ProcSet (CIDInit) 4 | %%BeginResource: CMap (Hankaku) 5 | %%Title: (Hankaku Adobe Japan1 0) 6 | %%Version: 10.003 7 | %%Copyright: ----------------------------------------------------------- 8 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 9 | %%Copyright: All rights reserved. 10 | %%Copyright: 11 | %%Copyright: Redistribution and use in source and binary forms, with or 12 | %%Copyright: without modification, are permitted provided that the 13 | %%Copyright: following conditions are met: 14 | %%Copyright: 15 | %%Copyright: Redistributions of source code must retain the above 16 | %%Copyright: copyright notice, this list of conditions and the following 17 | %%Copyright: disclaimer. 18 | %%Copyright: 19 | %%Copyright: Redistributions in binary form must reproduce the above 20 | %%Copyright: copyright notice, this list of conditions and the following 21 | %%Copyright: disclaimer in the documentation and/or other materials 22 | %%Copyright: provided with the distribution. 23 | %%Copyright: 24 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 25 | %%Copyright: of its contributors may be used to endorse or promote 26 | %%Copyright: products derived from this software without specific prior 27 | %%Copyright: written permission. 28 | %%Copyright: 29 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 30 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 31 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 32 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 33 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 34 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 35 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 36 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 37 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 39 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 40 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 41 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 | %%Copyright: ----------------------------------------------------------- 43 | %%EndComments 44 | 45 | /CIDInit /ProcSet findresource begin 46 | 47 | 12 dict begin 48 | 49 | begincmap 50 | 51 | /CIDSystemInfo 3 dict dup begin 52 | /Registry (Adobe) def 53 | /Ordering (Japan1) def 54 | /Supplement 0 def 55 | end def 56 | 57 | /CMapName /Hankaku def 58 | /CMapVersion 10.003 def 59 | /CMapType 1 def 60 | 61 | /UIDOffset 860 def 62 | /XUID [1 10 25348] def 63 | 64 | /WMode 0 def 65 | 66 | 1 begincodespacerange 67 | <00> 68 | endcodespacerange 69 | 70 | 10 begincidrange 71 | <20> <5f> 231 72 | <60> <60> 231 73 | <61> <7e> 296 74 | <81> <85> 327 75 | <86> <8f> 516 76 | <90> <90> 342 77 | <91> <9f> 526 78 | 327 79 | 541 80 | 388 81 | endcidrange 82 | endcmap 83 | CMapName currentdict /CMap defineresource pop 84 | end 85 | end 86 | 87 | %%EndResource 88 | %%EOF 89 | -------------------------------------------------------------------------------- /3rdparty/resources/B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (B5-H) 6 | %%BeginResource: CMap (B5-V) 7 | %%Title: (B5-V Adobe CNS1 0) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /B5-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 910 def 66 | /XUID [1 10 25381] def 67 | 68 | /WMode 1 def 69 | 70 | 12 begincidrange 71 | 13646 72 | 13743 73 | 13745 74 | 130 75 | 134 76 | 138 77 | 142 78 | 146 79 | 150 80 | 154 81 | 158 82 | 13647 83 | endcidrange 84 | endcmap 85 | CMapName currentdict /CMap defineresource pop 86 | end 87 | end 88 | 89 | %%EndResource 90 | %%EOF 91 | -------------------------------------------------------------------------------- /3rdparty/resources/CNS1-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (CNS1-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (CNS1-H) 6 | %%BeginResource: CMap (CNS1-V) 7 | %%Title: (CNS1-V Adobe CNS1 0) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /CNS1-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /CNS1-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 940 def 66 | /XUID [1 10 25385] def 67 | 68 | /WMode 1 def 69 | 70 | 12 begincidrange 71 | <212c> <212c> 13646 72 | <213b> <213b> 124 73 | <213d> <213d> 126 74 | <213e> <213f> 130 75 | <2142> <2143> 134 76 | <2146> <2147> 138 77 | <214a> <214b> 142 78 | <214e> <214f> 146 79 | <2152> <2153> 150 80 | <2156> <2157> 154 81 | <215a> <215b> 158 82 | <2244> <2244> 13647 83 | endcidrange 84 | endcmap 85 | CMapName currentdict /CMap defineresource pop 86 | end 87 | end 88 | 89 | %%EndResource 90 | %%EOF 91 | -------------------------------------------------------------------------------- /3rdparty/resources/B5pc-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (B5pc-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (B5pc-H) 6 | %%BeginResource: CMap (B5pc-V) 7 | %%Title: (B5pc-V Adobe CNS1 0) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /B5pc-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /B5pc-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 900 def 66 | /XUID [1 10 25383] def 67 | 68 | /WMode 1 def 69 | 70 | 12 begincidrange 71 | 13646 72 | 13743 73 | 13745 74 | 130 75 | 134 76 | 138 77 | 142 78 | 146 79 | 150 80 | 154 81 | 158 82 | 13647 83 | endcidrange 84 | endcmap 85 | CMapName currentdict /CMap defineresource pop 86 | end 87 | end 88 | 89 | %%EndResource 90 | %%EOF 91 | -------------------------------------------------------------------------------- /3rdparty/resources/HKdla-B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (HKdla-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (HKdla-B5-H) 6 | %%BeginResource: CMap (HKdla-B5-V) 7 | %%Title: (HKdla-B5-V Adobe CNS1 1) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /HKdla-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /HKdla-B5-V def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25522] def 66 | 67 | /WMode 1 def 68 | 69 | 12 begincidrange 70 | 13646 71 | 13743 72 | 13745 73 | 130 74 | 134 75 | 138 76 | 142 77 | 146 78 | 150 79 | 154 80 | 158 81 | 13647 82 | endcidrange 83 | endcmap 84 | CMapName currentdict /CMap defineresource pop 85 | end 86 | end 87 | 88 | %%EndResource 89 | %%EOF 90 | -------------------------------------------------------------------------------- /3rdparty/resources/HKdlb-B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (HKdlb-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (HKdlb-B5-H) 6 | %%BeginResource: CMap (HKdlb-B5-V) 7 | %%Title: (HKdlb-B5-V Adobe CNS1 1) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /HKdlb-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /HKdlb-B5-V def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25524] def 66 | 67 | /WMode 1 def 68 | 69 | 12 begincidrange 70 | 13646 71 | 13743 72 | 13745 73 | 130 74 | 134 75 | 138 76 | 142 77 | 146 78 | 150 79 | 154 80 | 158 81 | 13647 82 | endcidrange 83 | endcmap 84 | CMapName currentdict /CMap defineresource pop 85 | end 86 | end 87 | 88 | %%EndResource 89 | %%EOF 90 | -------------------------------------------------------------------------------- /src/tracing.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** DocToText - Converts DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), 4 | ** OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), 5 | ** ODFXML (FODP, FODS, FODT), PDF, EML and HTML documents to plain text. 6 | ** Extracts metadata and annotations. 7 | ** 8 | ** Copyright (c) 2006-2013, SILVERCODERS(R) 9 | ** http://silvercoders.com 10 | ** 11 | ** Project homepage: http://silvercoders.com/en/products/doctotext 12 | ** 13 | ** This program may be distributed and/or modified under the terms of the 14 | ** GNU General Public License version 2 as published by the Free Software 15 | ** Foundation and appearing in the file COPYING.GPL included in the 16 | ** packaging of this file. 17 | ** 18 | ** Please remember that any attempt to workaround the GNU General Public 19 | ** License using wrappers, pipes, client/server protocols, and so on 20 | ** is considered as license violation. If your program, published on license 21 | ** other than GNU General Public License version 2, calls some part of this 22 | ** code directly or indirectly, you have to buy commercial license. 23 | ** If you do not like our point of view, simply do not use the product. 24 | ** 25 | ** Licensees holding valid commercial license for this product 26 | ** may use this file in accordance with the license published by 27 | ** SILVERCODERS and appearing in the file COPYING.COM 28 | ** 29 | ** This program is distributed in the hope that it will be useful, 30 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 31 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32 | ** 33 | *****************************************************************************/ 34 | 35 | #include "tracing.h" 36 | 37 | #include 38 | #include 39 | 40 | static int level = 0; 41 | static FILE* file = NULL; 42 | 43 | void doctotext_init_tracing(const char* filename) __attribute__((no_instrument_function)); 44 | static void close_tracing(void) __attribute__((no_instrument_function, destructor)); 45 | static void trace_func(bool call, void* func, void* caller) __attribute__((no_instrument_function)); 46 | 47 | void doctotext_init_tracing(const char* filename) 48 | { 49 | file = fopen(filename, "w"); 50 | if (file == NULL) 51 | { 52 | fprintf(stderr, "Error opening %s trace file.\n", filename); 53 | exit(1); 54 | } 55 | } 56 | 57 | static void close_tracing(void) 58 | { 59 | if (file != NULL) 60 | fclose(file); 61 | file = NULL; 62 | } 63 | 64 | static void trace_func(bool call, void* func, void* caller) 65 | { 66 | if (!call) 67 | level--; 68 | if (file != NULL) 69 | { 70 | #warning TODO: Make this thread safe and add thread id to output. 71 | fprintf(file, "%i %c %p %p\n", level, call ? 'C' : 'R', func, caller); 72 | fflush(file); 73 | } 74 | if (call) 75 | level++; 76 | } 77 | 78 | extern "C" 79 | { 80 | void __cyg_profile_func_enter(void* func, void* caller) __attribute__((no_instrument_function)); 81 | void __cyg_profile_func_exit (void* func, void* caller) __attribute__((no_instrument_function)); 82 | 83 | void __cyg_profile_func_enter(void* func, void* caller) 84 | { 85 | trace_func(true, func, caller); 86 | } 87 | 88 | void __cyg_profile_func_exit (void* func, void* caller) 89 | { 90 | trace_func(false, func, caller); 91 | } 92 | } 93 | -------------------------------------------------------------------------------- /3rdparty/resources/HKgccs-B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (HKgccs-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (HKgccs-B5-H) 6 | %%BeginResource: CMap (HKgccs-B5-V) 7 | %%Title: (HKgccs-B5-V Adobe CNS1 1) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /HKgccs-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /HKgccs-B5-V def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25520] def 66 | 67 | /WMode 1 def 68 | 69 | 12 begincidrange 70 | 13646 71 | 13743 72 | 13745 73 | 130 74 | 134 75 | 138 76 | 142 77 | 146 78 | 150 79 | 154 80 | 158 81 | 13647 82 | endcidrange 83 | endcmap 84 | CMapName currentdict /CMap defineresource pop 85 | end 86 | end 87 | 88 | %%EndResource 89 | %%EOF 90 | -------------------------------------------------------------------------------- /3rdparty/resources/HKm314-B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (HKm314-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (HKm314-B5-H) 6 | %%BeginResource: CMap (HKm314-B5-V) 7 | %%Title: (HKm314-B5-V Adobe CNS1 1) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /HKm314-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /HKm314-B5-V def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25528] def 66 | 67 | /WMode 1 def 68 | 69 | 12 begincidrange 70 | 13646 71 | 13743 72 | 13745 73 | 130 74 | 134 75 | 138 76 | 142 77 | 146 78 | 150 79 | 154 80 | 158 81 | 13647 82 | endcidrange 83 | endcmap 84 | CMapName currentdict /CMap defineresource pop 85 | end 86 | end 87 | 88 | %%EndResource 89 | %%EOF 90 | -------------------------------------------------------------------------------- /3rdparty/resources/HKm471-B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (HKm471-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (HKm471-B5-H) 6 | %%BeginResource: CMap (HKm471-B5-V) 7 | %%Title: (HKm471-B5-V Adobe CNS1 1) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /HKm471-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /HKm471-B5-V def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25526] def 66 | 67 | /WMode 1 def 68 | 69 | 12 begincidrange 70 | 13646 71 | 13743 72 | 13745 73 | 130 74 | 134 75 | 138 76 | 142 77 | 146 78 | 150 79 | 154 80 | 158 81 | 13647 82 | endcidrange 83 | endcmap 84 | CMapName currentdict /CMap defineresource pop 85 | end 86 | end 87 | 88 | %%EndResource 89 | %%EOF 90 | -------------------------------------------------------------------------------- /3rdparty/resources/ETHK-B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (ETHK-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (ETHK-B5-H) 6 | %%BeginResource: CMap (ETHK-B5-V) 7 | %%Title: (ETHK-B5-V Adobe CNS1 6) 8 | %%Version: 13.004 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /ETHK-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 6 def 59 | end def 60 | 61 | /CMapName /ETHK-B5-V def 62 | /CMapVersion 13.004 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25583] def 66 | 67 | /WMode 1 def 68 | 69 | 13 begincidrange 70 | 13646 71 | 13743 72 | 13745 73 | 130 74 | 134 75 | 138 76 | 142 77 | 146 78 | 150 79 | 154 80 | 158 81 | 13647 82 | 14097 83 | endcidrange 84 | endcmap 85 | CMapName currentdict /CMap defineresource pop 86 | end 87 | end 88 | 89 | %%EndResource 90 | %%EOF 91 | -------------------------------------------------------------------------------- /3rdparty/resources/HKscs-B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (HKscs-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (HKscs-B5-H) 6 | %%BeginResource: CMap (HKscs-B5-V) 7 | %%Title: (HKscs-B5-V Adobe CNS1 6) 8 | %%Version: 13.005 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /HKscs-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 6 def 59 | end def 60 | 61 | /CMapName /HKscs-B5-V def 62 | /CMapVersion 13.005 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25581] def 66 | 67 | /WMode 1 def 68 | 69 | 13 begincidrange 70 | 13646 71 | 13743 72 | 13745 73 | 130 74 | 134 75 | 138 76 | 142 77 | 146 78 | 150 79 | 154 80 | 158 81 | 13647 82 | 14097 83 | endcidrange 84 | endcmap 85 | CMapName currentdict /CMap defineresource pop 86 | end 87 | end 88 | 89 | %%EndResource 90 | %%EOF 91 | -------------------------------------------------------------------------------- /3rdparty/resources/UniCNS-UCS2-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniCNS-UCS2-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniCNS-UCS2-H) 6 | %%BeginResource: CMap (UniCNS-UCS2-V) 7 | %%Title: (UniCNS-UCS2-V Adobe CNS1 3) 8 | %%Version: 12.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniCNS-UCS2-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 3 def 59 | end def 60 | 61 | /CMapName /UniCNS-UCS2-V def 62 | /CMapVersion 12.003 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25393] def 66 | 67 | /WMode 1 def 68 | 69 | 13 begincidrange 70 | <2013> <2013> 120 71 | <2014> <2014> 122 72 | <2025> <2025> 109 73 | <3008> <3009> 150 74 | <300a> <300b> 146 75 | <300c> <300d> 154 76 | <300e> <300f> 158 77 | <3010> <3011> 142 78 | <3014> <3015> 138 79 | 13745 80 | 130 81 | 134 82 | 135 83 | endcidrange 84 | endcmap 85 | CMapName currentdict /CMap defineresource pop 86 | end 87 | end 88 | 89 | %%EndResource 90 | %%EOF 91 | -------------------------------------------------------------------------------- /3rdparty/resources/ETen-B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (ETen-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (ETen-B5-H) 6 | %%BeginResource: CMap (ETen-B5-V) 7 | %%Title: (ETen-B5-V Adobe CNS1 0) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /ETen-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /ETen-B5-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 920 def 66 | /XUID [1 10 25391] def 67 | 68 | /WMode 1 def 69 | 70 | 13 begincidrange 71 | 13646 72 | 13743 73 | 13745 74 | 130 75 | 134 76 | 138 77 | 142 78 | 146 79 | 150 80 | 154 81 | 158 82 | 13647 83 | 14097 84 | endcidrange 85 | endcmap 86 | CMapName currentdict /CMap defineresource pop 87 | end 88 | end 89 | 90 | %%EndResource 91 | %%EOF 92 | -------------------------------------------------------------------------------- /3rdparty/resources/UniCNS-UTF16-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniCNS-UTF16-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniCNS-UTF16-H) 6 | %%BeginResource: CMap (UniCNS-UTF16-V) 7 | %%Title: (UniCNS-UTF16-V Adobe CNS1 6) 8 | %%Version: 1.005 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniCNS-UTF16-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 6 def 59 | end def 60 | 61 | /CMapName /UniCNS-UTF16-V def 62 | /CMapVersion 1.005 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25592] def 66 | 67 | /WMode 1 def 68 | 69 | 6 begincidchar 70 | <2013> 120 71 | <2014> 122 72 | <2025> 109 73 | 13745 74 | 134 75 | 135 76 | endcidchar 77 | 78 | 7 begincidrange 79 | <3008> <3009> 150 80 | <300a> <300b> 146 81 | <300c> <300d> 154 82 | <300e> <300f> 158 83 | <3010> <3011> 142 84 | <3014> <3015> 138 85 | 130 86 | endcidrange 87 | 88 | endcmap 89 | CMapName currentdict /CMap defineresource pop 90 | end 91 | end 92 | 93 | %%EndResource 94 | %%EOF 95 | -------------------------------------------------------------------------------- /3rdparty/resources/UniCNS-UTF8-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniCNS-UTF8-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniCNS-UTF8-H) 6 | %%BeginResource: CMap (UniCNS-UTF8-V) 7 | %%Title: (UniCNS-UTF8-V Adobe CNS1 6) 8 | %%Version: 13.005 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniCNS-UTF8-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 6 def 59 | end def 60 | 61 | /CMapName /UniCNS-UTF8-V def 62 | /CMapVersion 13.005 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25398] def 66 | 67 | /WMode 1 def 68 | 69 | 6 begincidchar 70 | 120 71 | 122 72 | 109 73 | 13745 74 | 134 75 | 135 76 | endcidchar 77 | 78 | 7 begincidrange 79 | 150 80 | 146 81 | 154 82 | 158 83 | 142 84 | 138 85 | 130 86 | endcidrange 87 | 88 | endcmap 89 | CMapName currentdict /CMap defineresource pop 90 | end 91 | end 92 | 93 | %%EndResource 94 | %%EOF 95 | -------------------------------------------------------------------------------- /3rdparty/resources/KSC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (KSC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (KSC-H) 6 | %%BeginResource: CMap (KSC-V) 7 | %%Title: (KSC-V Adobe Korea1 0) 8 | %%Version: 9.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /KSC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /KSC-V def 62 | /CMapVersion 9.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 320 def 66 | /XUID [1 10 25403] def 67 | 68 | /WMode 1 def 69 | 70 | 16 begincidrange 71 | <2122> <2123> 8056 72 | <2125> <2125> 8058 73 | <2126> <2126> 8320 74 | <2129> <212b> 8059 75 | <212d> <212d> 8062 76 | <2132> <213d> 8063 77 | <216b> <216b> 8075 78 | <2321> <2321> 8076 79 | <2328> <2329> 8077 80 | <232c> <232c> 8079 81 | <232e> <232e> 8080 82 | <233a> <233f> 8081 83 | <235b> <235b> 8087 84 | <235d> <235d> 8088 85 | <235f> <235f> 8089 86 | <237b> <237e> 8090 87 | endcidrange 88 | endcmap 89 | CMapName currentdict /CMap defineresource pop 90 | end 91 | end 92 | 93 | %%EndResource 94 | %%EOF 95 | -------------------------------------------------------------------------------- /3rdparty/resources/KSC-EUC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (KSC-EUC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (KSC-EUC-H) 6 | %%BeginResource: CMap (KSC-EUC-V) 7 | %%Title: (KSC-EUC-V Adobe Korea1 0) 8 | %%Version: 9.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /KSC-EUC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /KSC-EUC-V def 62 | /CMapVersion 9.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 310 def 66 | /XUID [1 10 25401] def 67 | 68 | /WMode 1 def 69 | 70 | 16 begincidrange 71 | 8056 72 | 8058 73 | 8320 74 | 8059 75 | 8062 76 | 8063 77 | 8075 78 | 8076 79 | 8077 80 | 8079 81 | 8080 82 | 8081 83 | 8087 84 | 8088 85 | 8089 86 | 8090 87 | endcidrange 88 | endcmap 89 | CMapName currentdict /CMap defineresource pop 90 | end 91 | end 92 | 93 | %%EndResource 94 | %%EOF 95 | -------------------------------------------------------------------------------- /3rdparty/resources/UniCNS-UTF32-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniCNS-UTF32-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniCNS-UTF32-H) 6 | %%BeginResource: CMap (UniCNS-UTF32-V) 7 | %%Title: (UniCNS-UTF32-V Adobe CNS1 6) 8 | %%Version: 1.005 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniCNS-UTF32-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 6 def 59 | end def 60 | 61 | /CMapName /UniCNS-UTF32-V def 62 | /CMapVersion 1.005 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25594] def 66 | 67 | /WMode 1 def 68 | 69 | 6 begincidchar 70 | <00002013> 120 71 | <00002014> 122 72 | <00002025> 109 73 | <0000fe4f> 13745 74 | <0000ff5b> 134 75 | <0000ff5d> 135 76 | endcidchar 77 | 78 | 7 begincidrange 79 | <00003008> <00003009> 150 80 | <0000300a> <0000300b> 146 81 | <0000300c> <0000300d> 154 82 | <0000300e> <0000300f> 158 83 | <00003010> <00003011> 142 84 | <00003014> <00003015> 138 85 | <0000ff08> <0000ff09> 130 86 | endcidrange 87 | 88 | endcmap 89 | CMapName currentdict /CMap defineresource pop 90 | end 91 | end 92 | 93 | %%EndResource 94 | %%EOF 95 | -------------------------------------------------------------------------------- /3rdparty/resources/KSCms-UHC-HW-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (KSCms-UHC-HW-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (KSCms-UHC-HW-H) 6 | %%BeginResource: CMap (KSCms-UHC-HW-V) 7 | %%Title: (KSCms-UHC-HW-V Adobe Korea1 1) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /KSCms-UHC-HW-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /KSCms-UHC-HW-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25417] def 66 | 67 | /WMode 1 def 68 | 69 | 16 begincidrange 70 | 8056 71 | 8058 72 | 8320 73 | 8059 74 | 8062 75 | 8063 76 | 8075 77 | 8076 78 | 8077 79 | 8079 80 | 8080 81 | 8081 82 | 8087 83 | 8088 84 | 8089 85 | 8090 86 | endcidrange 87 | endcmap 88 | CMapName currentdict /CMap defineresource pop 89 | end 90 | end 91 | 92 | %%EndResource 93 | %%EOF 94 | -------------------------------------------------------------------------------- /3rdparty/resources/KSCpc-EUC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (KSCpc-EUC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (KSCpc-EUC-H) 6 | %%BeginResource: CMap (KSCpc-EUC-V) 7 | %%Title: (KSCpc-EUC-V Adobe Korea1 0) 8 | %%Version: 9.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /KSCpc-EUC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /KSCpc-EUC-V def 62 | /CMapVersion 9.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 300 def 66 | /XUID [1 10 25405] def 67 | 68 | /WMode 1 def 69 | 70 | 16 begincidrange 71 | 8056 72 | 8058 73 | 8320 74 | 8059 75 | 8062 76 | 8063 77 | 8075 78 | 8076 79 | 8077 80 | 8079 81 | 8080 82 | 8081 83 | 8087 84 | 8088 85 | 8089 86 | 8090 87 | endcidrange 88 | endcmap 89 | CMapName currentdict /CMap defineresource pop 90 | end 91 | end 92 | 93 | %%EndResource 94 | %%EOF 95 | -------------------------------------------------------------------------------- /3rdparty/resources/KSC-Johab-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (KSC-Johab-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (KSC-Johab-H) 6 | %%BeginResource: CMap (KSC-Johab-V) 7 | %%Title: (KSC-Johab-V Adobe Korea1 1) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /KSC-Johab-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /KSC-Johab-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 690 def 66 | /XUID [1 10 25412] def 67 | 68 | /WMode 1 def 69 | 70 | 16 begincidrange 71 | 8056 72 | 8058 73 | 8320 74 | 8059 75 | 8062 76 | 8063 77 | 8075 78 | 8076 79 | 8077 80 | 8079 81 | 8080 82 | 8081 83 | 8087 84 | 8088 85 | 8089 86 | 8090 87 | endcidrange 88 | endcmap 89 | CMapName currentdict /CMap defineresource pop 90 | end 91 | end 92 | 93 | %%EndResource 94 | %%EOF 95 | -------------------------------------------------------------------------------- /3rdparty/resources/KSCms-UHC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (KSCms-UHC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (KSCms-UHC-H) 6 | %%BeginResource: CMap (KSCms-UHC-V) 7 | %%Title: (KSCms-UHC-V Adobe Korea1 1) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /KSCms-UHC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /KSCms-UHC-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 680 def 66 | /XUID [1 10 25410] def 67 | 68 | /WMode 1 def 69 | 70 | 16 begincidrange 71 | 8056 72 | 8058 73 | 8320 74 | 8059 75 | 8062 76 | 8063 77 | 8075 78 | 8076 79 | 8077 80 | 8079 81 | 8080 82 | 8081 83 | 8087 84 | 8088 85 | 8089 86 | 8090 87 | endcidrange 88 | endcmap 89 | CMapName currentdict /CMap defineresource pop 90 | end 91 | end 92 | 93 | %%EndResource 94 | %%EOF 95 | -------------------------------------------------------------------------------- /3rdparty/resources/UniKS-UCS2-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniKS-UCS2-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniKS-UCS2-H) 6 | %%BeginResource: CMap (UniKS-UCS2-V) 7 | %%Title: (UniKS-UCS2-V Adobe Korea1 1) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniKS-UCS2-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /UniKS-UCS2-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25407] def 66 | 67 | /WMode 1 def 68 | 69 | 18 begincidrange 70 | <2013> <2014> 8059 71 | <2016> <2016> 8061 72 | <2025> <2025> 8058 73 | <3001> <3002> 8056 74 | <3008> <3011> 8065 75 | <3013> <3013> 8075 76 | <3014> <3015> 8063 77 | 8076 78 | 8077 79 | 8079 80 | 8080 81 | 8081 82 | 8087 83 | 8088 84 | 8089 85 | 8090 86 | 8062 87 | 8093 88 | endcidrange 89 | endcmap 90 | CMapName currentdict /CMap defineresource pop 91 | end 92 | end 93 | 94 | %%EndResource 95 | %%EOF 96 | -------------------------------------------------------------------------------- /3rdparty/resources/GB-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (GB-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (GB-H) 6 | %%BeginResource: CMap (GB-V) 7 | %%Title: (GB-V Adobe GB1 0) 8 | %%Version: 9.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /GB-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /GB-V def 62 | /CMapVersion 9.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 320 def 66 | /XUID [1 10 25363] def 67 | 68 | /WMode 1 def 69 | 70 | 20 begincidrange 71 | <2122> <2122> 575 72 | <2123> <2123> 574 73 | <212a> <212a> 598 74 | <212b> <212c> 7704 75 | <212d> <212d> 599 76 | <2132> <213f> 582 77 | <217e> <217e> 7706 78 | <2321> <2321> 578 79 | <2328> <2329> 580 80 | <232c> <232c> 573 81 | <232e> <232e> 7707 82 | <233a> <233b> 576 83 | <233d> <233d> 7708 84 | <233f> <233f> 579 85 | <235b> <235b> 7709 86 | <235d> <235d> 7710 87 | <235f> <235f> 600 88 | <237b> <237b> 596 89 | <237d> <237d> 597 90 | <237e> <237e> 7711 91 | endcidrange 92 | endcmap 93 | CMapName currentdict /CMap defineresource pop 94 | end 95 | end 96 | 97 | %%EndResource 98 | %%EOF 99 | -------------------------------------------------------------------------------- /3rdparty/resources/GBT-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (GBT-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (GBT-H) 6 | %%BeginResource: CMap (GBT-V) 7 | %%Title: (GBT-V Adobe GB1 1) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /GBT-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /GBT-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 700 def 66 | /XUID [1 10 25373] def 67 | 68 | /WMode 1 def 69 | 70 | 20 begincidrange 71 | <2122> <2122> 575 72 | <2123> <2123> 574 73 | <212a> <212a> 598 74 | <212b> <212c> 7704 75 | <212d> <212d> 599 76 | <2132> <213f> 582 77 | <217e> <217e> 7706 78 | <2321> <2321> 578 79 | <2328> <2329> 580 80 | <232c> <232c> 573 81 | <232e> <232e> 7707 82 | <233a> <233b> 576 83 | <233d> <233d> 7708 84 | <233f> <233f> 579 85 | <235b> <235b> 7709 86 | <235d> <235d> 7710 87 | <235f> <235f> 600 88 | <237b> <237b> 596 89 | <237d> <237d> 597 90 | <237e> <237e> 7711 91 | endcidrange 92 | endcmap 93 | CMapName currentdict /CMap defineresource pop 94 | end 95 | end 96 | 97 | %%EndResource 98 | %%EOF 99 | -------------------------------------------------------------------------------- /3rdparty/resources/GBK-EUC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (GBK-EUC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (GBK-EUC-H) 6 | %%BeginResource: CMap (GBK-EUC-V) 7 | %%Title: (GBK-EUC-V Adobe GB1 2) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /GBK-EUC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 2 def 59 | end def 60 | 61 | /CMapName /GBK-EUC-V def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25378] def 66 | 67 | /WMode 1 def 68 | 69 | 20 begincidrange 70 | 575 71 | 574 72 | 598 73 | 7704 74 | 599 75 | 582 76 | 7706 77 | 578 78 | 580 79 | 573 80 | 7707 81 | 576 82 | 7708 83 | 579 84 | 7709 85 | 7710 86 | 600 87 | 596 88 | 597 89 | 7711 90 | endcidrange 91 | endcmap 92 | CMapName currentdict /CMap defineresource pop 93 | end 94 | end 95 | 96 | %%EndResource 97 | %%EOF 98 | -------------------------------------------------------------------------------- /3rdparty/resources/GBKp-EUC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (GBKp-EUC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (GBKp-EUC-H) 6 | %%BeginResource: CMap (GBKp-EUC-V) 7 | %%Title: (GBKp-EUC-V Adobe GB1 2) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /GBKp-EUC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 2 def 59 | end def 60 | 61 | /CMapName /GBKp-EUC-V def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25456] def 66 | 67 | /WMode 1 def 68 | 69 | 20 begincidrange 70 | 575 71 | 574 72 | 598 73 | 7704 74 | 599 75 | 582 76 | 7706 77 | 578 78 | 580 79 | 573 80 | 7707 81 | 576 82 | 7708 83 | 579 84 | 7709 85 | 7710 86 | 600 87 | 596 88 | 597 89 | 7711 90 | endcidrange 91 | endcmap 92 | CMapName currentdict /CMap defineresource pop 93 | end 94 | end 95 | 96 | %%EndResource 97 | %%EOF 98 | -------------------------------------------------------------------------------- /3rdparty/resources/GB-EUC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (GB-EUC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (GB-EUC-H) 6 | %%BeginResource: CMap (GB-EUC-V) 7 | %%Title: (GB-EUC-V Adobe GB1 0) 8 | %%Version: 9.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /GB-EUC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /GB-EUC-V def 62 | /CMapVersion 9.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 310 def 66 | /XUID [1 10 25361] def 67 | 68 | /WMode 1 def 69 | 70 | 20 begincidrange 71 | 575 72 | 574 73 | 598 74 | 7704 75 | 599 76 | 582 77 | 7706 78 | 578 79 | 580 80 | 573 81 | 7707 82 | 576 83 | 7708 84 | 579 85 | 7709 86 | 7710 87 | 600 88 | 596 89 | 597 90 | 7711 91 | endcidrange 92 | endcmap 93 | CMapName currentdict /CMap defineresource pop 94 | end 95 | end 96 | 97 | %%EndResource 98 | %%EOF 99 | -------------------------------------------------------------------------------- /3rdparty/resources/GBT-EUC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (GBT-EUC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (GBT-EUC-H) 6 | %%BeginResource: CMap (GBT-EUC-V) 7 | %%Title: (GBT-EUC-V Adobe GB1 1) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /GBT-EUC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /GBT-EUC-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 690 def 66 | /XUID [1 10 25371] def 67 | 68 | /WMode 1 def 69 | 70 | 20 begincidrange 71 | 575 72 | 574 73 | 598 74 | 7704 75 | 599 76 | 582 77 | 7706 78 | 578 79 | 580 80 | 573 81 | 7707 82 | 576 83 | 7708 84 | 579 85 | 7709 86 | 7710 87 | 600 88 | 596 89 | 597 90 | 7711 91 | endcidrange 92 | endcmap 93 | CMapName currentdict /CMap defineresource pop 94 | end 95 | end 96 | 97 | %%EndResource 98 | %%EOF 99 | -------------------------------------------------------------------------------- /3rdparty/resources/GBpc-EUC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (GBpc-EUC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (GBpc-EUC-H) 6 | %%BeginResource: CMap (GBpc-EUC-V) 7 | %%Title: (GBpc-EUC-V Adobe GB1 0) 8 | %%Version: 9.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /GBpc-EUC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /GBpc-EUC-V def 62 | /CMapVersion 9.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 300 def 66 | /XUID [1 10 25365] def 67 | 68 | /WMode 1 def 69 | 70 | 20 begincidrange 71 | 575 72 | 574 73 | 598 74 | 7704 75 | 599 76 | 582 77 | 7706 78 | 578 79 | 580 80 | 573 81 | 7707 82 | 576 83 | 7708 84 | 579 85 | 7709 86 | 7710 87 | 600 88 | 596 89 | 597 90 | 7711 91 | endcidrange 92 | endcmap 93 | CMapName currentdict /CMap defineresource pop 94 | end 95 | end 96 | 97 | %%EndResource 98 | %%EOF 99 | -------------------------------------------------------------------------------- /3rdparty/resources/GBTpc-EUC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (GBTpc-EUC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (GBTpc-EUC-H) 6 | %%BeginResource: CMap (GBTpc-EUC-V) 7 | %%Title: (GBTpc-EUC-V Adobe GB1 1) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /GBTpc-EUC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /GBTpc-EUC-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 680 def 66 | /XUID [1 10 25375] def 67 | 68 | /WMode 1 def 69 | 70 | 20 begincidrange 71 | 575 72 | 574 73 | 598 74 | 7704 75 | 599 76 | 582 77 | 7706 78 | 578 79 | 580 80 | 573 81 | 7707 82 | 576 83 | 7708 84 | 579 85 | 7709 86 | 7710 87 | 600 88 | 596 89 | 597 90 | 7711 91 | endcidrange 92 | endcmap 93 | CMapName currentdict /CMap defineresource pop 94 | end 95 | end 96 | 97 | %%EndResource 98 | %%EOF 99 | -------------------------------------------------------------------------------- /3rdparty/resources/UniKS-UTF16-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniKS-UTF16-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniKS-UTF16-H) 6 | %%BeginResource: CMap (UniKS-UTF16-V) 7 | %%Title: (UniKS-UTF16-V Adobe Korea1 1) 8 | %%Version: 1.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniKS-UTF16-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /UniKS-UTF16-V def 62 | /CMapVersion 1.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25545] def 66 | 67 | /WMode 1 def 68 | 69 | 11 begincidchar 70 | <2016> 8061 71 | <2025> 8058 72 | <3013> 8075 73 | 8076 74 | 8079 75 | 8080 76 | 8087 77 | 8088 78 | 8089 79 | 8062 80 | 8093 81 | endcidchar 82 | 83 | 7 begincidrange 84 | <2013> <2014> 8059 85 | <3001> <3002> 8056 86 | <3008> <3011> 8065 87 | <3014> <3015> 8063 88 | 8077 89 | 8081 90 | 8090 91 | endcidrange 92 | 93 | endcmap 94 | CMapName currentdict /CMap defineresource pop 95 | end 96 | end 97 | 98 | %%EndResource 99 | %%EOF 100 | -------------------------------------------------------------------------------- /3rdparty/resources/ETenms-B5-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (ETenms-B5-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (ETenms-B5-H) 6 | %%BeginResource: CMap (ETenms-B5-V) 7 | %%Title: (ETenms-B5-V Adobe CNS1 0) 8 | %%Version: 10.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /ETenms-B5-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (CNS1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /ETenms-B5-V def 62 | /CMapVersion 10.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25597] def 66 | 67 | /WMode 1 def 68 | 69 | 6 begincidchar 70 | 13646 71 | 109 72 | 312 73 | 122 74 | 13743 75 | 13745 76 | endcidchar 77 | 78 | 12 begincidrange 79 | 130 80 | 134 81 | 138 82 | 142 83 | 146 84 | 150 85 | 154 86 | 158 87 | 130 88 | 134 89 | 138 90 | 14097 91 | endcidrange 92 | 93 | endcmap 94 | CMapName currentdict /CMap defineresource pop 95 | end 96 | end 97 | 98 | %%EndResource 99 | %%EOF 100 | -------------------------------------------------------------------------------- /3rdparty/resources/UniKS-UTF8-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniKS-UTF8-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniKS-UTF8-H) 6 | %%BeginResource: CMap (UniKS-UTF8-V) 7 | %%Title: (UniKS-UTF8-V Adobe Korea1 1) 8 | %%Version: 11.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniKS-UTF8-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /UniKS-UTF8-V def 62 | /CMapVersion 11.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25415] def 66 | 67 | /WMode 1 def 68 | 69 | 11 begincidchar 70 | 8061 71 | 8058 72 | 8075 73 | 8076 74 | 8079 75 | 8080 76 | 8087 77 | 8088 78 | 8089 79 | 8062 80 | 8093 81 | endcidchar 82 | 83 | 7 begincidrange 84 | 8059 85 | 8056 86 | 8065 87 | 8063 88 | 8077 89 | 8081 90 | 8090 91 | endcidrange 92 | 93 | endcmap 94 | CMapName currentdict /CMap defineresource pop 95 | end 96 | end 97 | 98 | %%EndResource 99 | %%EOF 100 | -------------------------------------------------------------------------------- /3rdparty/resources/UniGB-UTF16-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniGB-UTF16-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniGB-UTF16-H) 6 | %%BeginResource: CMap (UniGB-UTF16-V) 7 | %%Title: (UniGB-UTF16-V Adobe GB1 5) 8 | %%Version: 1.004 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniGB-UTF16-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 5 def 59 | end def 60 | 61 | /CMapName /UniGB-UTF16-V def 62 | /CMapVersion 1.004 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25602] def 66 | 67 | /WMode 1 def 68 | 69 | 17 begincidchar 70 | <2014> 598 71 | <2026> 599 72 | <3001> 575 73 | <3002> 574 74 | <3013> 7706 75 | 578 76 | 573 77 | 7707 78 | 7708 79 | 579 80 | 7709 81 | 7710 82 | 600 83 | 596 84 | 597 85 | 7704 86 | 7711 87 | endcidchar 88 | 89 | 6 begincidrange 90 | <3008> <300f> 584 91 | <3010> <3011> 594 92 | <3014> <3015> 582 93 | <3016> <3017> 592 94 | 580 95 | 576 96 | endcidrange 97 | 98 | endcmap 99 | CMapName currentdict /CMap defineresource pop 100 | end 101 | end 102 | 103 | %%EndResource 104 | %%EOF 105 | -------------------------------------------------------------------------------- /tests/read_from_buffer_test.cpp: -------------------------------------------------------------------------------- 1 | #include "../build/metadata.h" 2 | #include "../build/plain_text_extractor.h" 3 | #include 4 | #include 5 | #include 6 | #include 7 | #include 8 | 9 | using namespace doctotext; 10 | 11 | static std::string date_to_string(const tm& date) 12 | { 13 | if (date.tm_year == 0) 14 | return ""; 15 | char buf[64]; 16 | strftime(buf, sizeof(buf), "%Y-%m-%d %H:%M:%S", &date); 17 | return buf; 18 | } 19 | 20 | int main(int argc, char* argv[]) 21 | { 22 | FormattingStyle options; 23 | options.table_style = TABLE_STYLE_TABLE_LOOK; 24 | options.list_style.setPrefix(" * "); 25 | options.url_style = URL_STYLE_UNDERSCORED; 26 | bool extract_metadata = false; 27 | std::string file_name(argv[1]); 28 | if (argc > 2 && std::string(argv[2]) == "--meta") 29 | extract_metadata = true; 30 | std::ifstream src(file_name.c_str(), std::ios_base::in|std::ios_base::binary); 31 | if (!src.is_open()) 32 | { 33 | std::cout << "Cannot open a file\n"; 34 | return 1; 35 | } 36 | std::string content((std::istreambuf_iterator(src)), std::istreambuf_iterator()); 37 | PlainTextExtractor extractor; 38 | extractor.setFormattingStyle(options); 39 | if (extract_metadata) 40 | { 41 | Metadata meta; 42 | if (!extractor.extractMetadata(content.c_str(), content.length(), meta)) 43 | { 44 | std::cerr << "Error processing file " << file_name << ".\n"; 45 | return 1; 46 | } 47 | std::cout << "Author: " << meta.author() << (meta.authorType() == Metadata::ESTIMATED ? " (estimated)" : "") 48 | << "\nCreation time: " << date_to_string(meta.creationDate()) << (meta.creationDateType() == Metadata::ESTIMATED ? " (estimated)" : "") 49 | << "\nLast modified by: " << meta.lastModifiedBy() << (meta.lastModifiedByType() == Metadata::ESTIMATED ? " (estimated)" : "") 50 | << "\nLast modification time: " << date_to_string(meta.lastModificationDate()) << (meta.lastModificationDateType() == Metadata::ESTIMATED ? " (estimated)" : "") 51 | << "\nPage count: " << meta.pageCount() << (meta.pageCountType() == Metadata::ESTIMATED ? " (estimated)" : "") 52 | << "\nWord count: " << meta.wordCount() << (meta.wordCountType() == Metadata::ESTIMATED ? " (estimated)" : "") 53 | << "\n"; 54 | } 55 | else 56 | { 57 | std::string text; 58 | if (!extractor.processFile(content.c_str(), content.length(), text)) 59 | { 60 | std::cerr << "Error processing file " << file_name << ".\n"; 61 | return 1; 62 | } 63 | printf("%s\n", text.c_str()); 64 | std::vector links; 65 | extractor.getParsedLinks(links); 66 | if (links.size() > 0) 67 | { 68 | printf("parsed links:\n"); 69 | for (size_t i = 0; i < links.size(); ++i) 70 | { 71 | printf("%s @ index = %d length = %d\n", links[i].getLinkUrl(), links[i].getLinkTextPosition(), strlen(links[i].getLinkText())); 72 | } 73 | } 74 | std::vector attachments; 75 | extractor.getAttachments(attachments); 76 | if (attachments.size() > 0) 77 | { 78 | printf("parsed attachments:\n"); 79 | for (size_t i = 0; i < attachments.size(); ++i) 80 | { 81 | printf("\nname: %s\n", attachments[i].filename()); 82 | std::map variables = attachments[i].getFields(); 83 | for (std::map::iterator it = variables.begin(); it != variables.end(); ++it) 84 | { 85 | #warning TODO: If Content-ID is not present in the file, mimetic generates it... and test/Makefile always goes wrong.\ 86 | Maybe we should skip this field? 87 | if (it->first != "Content-ID") 88 | printf("field: %s, value: %s\n", it->first.c_str(), it->second.getString()); 89 | } 90 | } 91 | } 92 | } 93 | return 0; 94 | } 95 | -------------------------------------------------------------------------------- /3rdparty/resources/WP-Symbol: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%IncludeResource: ProcSet (CIDInit) 4 | %%BeginResource: CMap (WP-Symbol) 5 | %%Title: (WP-Symbol Adobe Japan1 0) 6 | %%Version: 10.003 7 | %%Copyright: ----------------------------------------------------------- 8 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 9 | %%Copyright: All rights reserved. 10 | %%Copyright: 11 | %%Copyright: Redistribution and use in source and binary forms, with or 12 | %%Copyright: without modification, are permitted provided that the 13 | %%Copyright: following conditions are met: 14 | %%Copyright: 15 | %%Copyright: Redistributions of source code must retain the above 16 | %%Copyright: copyright notice, this list of conditions and the following 17 | %%Copyright: disclaimer. 18 | %%Copyright: 19 | %%Copyright: Redistributions in binary form must reproduce the above 20 | %%Copyright: copyright notice, this list of conditions and the following 21 | %%Copyright: disclaimer in the documentation and/or other materials 22 | %%Copyright: provided with the distribution. 23 | %%Copyright: 24 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 25 | %%Copyright: of its contributors may be used to endorse or promote 26 | %%Copyright: products derived from this software without specific prior 27 | %%Copyright: written permission. 28 | %%Copyright: 29 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 30 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 31 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 32 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 33 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 34 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 35 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 36 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 37 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 38 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 39 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 40 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 41 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 42 | %%Copyright: ----------------------------------------------------------- 43 | %%EndComments 44 | 45 | /CIDInit /ProcSet findresource begin 46 | 47 | 12 dict begin 48 | 49 | begincmap 50 | 51 | /CIDSystemInfo 3 dict dup begin 52 | /Registry (Adobe) def 53 | /Ordering (Japan1) def 54 | /Supplement 0 def 55 | end def 56 | 57 | /CMapName /WP-Symbol def 58 | /CMapVersion 10.003 def 59 | /CMapType 1 def 60 | 61 | /UIDOffset 868 def 62 | /XUID [1 10 25352] def 63 | 64 | /WMode 0 def 65 | 66 | 1 begincodespacerange 67 | <00> 68 | endcodespacerange 69 | 70 | 27 begincidrange 71 | <01> <01> 8056 72 | <02> <02> 8058 73 | <03> <03> 8191 74 | <04> <04> 8196 75 | <05> <18> 8061 76 | <19> <22> 8092 77 | <23> <23> 8186 78 | <24> <25> 8020 79 | <26> <26> 8187 80 | <27> <28> 8022 81 | <29> <29> 8188 82 | <2a> <2a> 8037 83 | <2b> <2d> 8024 84 | <2e> <2f> 8189 85 | <30> <31> 8192 86 | <32> <33> 7899 87 | <34> <34> 7894 88 | <35> <35> 8194 89 | <36> <36> 8035 90 | <37> <39> 8027 91 | <3a> <3a> 8195 92 | <3b> <54> 8112 93 | <55> <5d> 8197 94 | <5e> <5e> 8151 95 | <61> <71> 8206 96 | <72> <72> 8057 97 | <73> <77> 8223 98 | endcidrange 99 | endcmap 100 | CMapName currentdict /CMap defineresource pop 101 | end 102 | end 103 | 104 | %%EndResource 105 | %%EOF 106 | -------------------------------------------------------------------------------- /3rdparty/resources/UniKS-UTF32-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniKS-UTF32-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniKS-UTF32-H) 6 | %%BeginResource: CMap (UniKS-UTF32-V) 7 | %%Title: (UniKS-UTF32-V Adobe Korea1 1) 8 | %%Version: 1.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniKS-UTF32-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Korea1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /UniKS-UTF32-V def 62 | /CMapVersion 1.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25543] def 66 | 67 | /WMode 1 def 68 | 69 | 11 begincidchar 70 | <00002016> 8061 71 | <00002025> 8058 72 | <00003013> 8075 73 | <0000ff01> 8076 74 | <0000ff0c> 8079 75 | <0000ff0e> 8080 76 | <0000ff3b> 8087 77 | <0000ff3d> 8088 78 | <0000ff3f> 8089 79 | <0000ff5e> 8062 80 | <0000ffe3> 8093 81 | endcidchar 82 | 83 | 7 begincidrange 84 | <00002013> <00002014> 8059 85 | <00003001> <00003002> 8056 86 | <00003008> <00003011> 8065 87 | <00003014> <00003015> 8063 88 | <0000ff08> <0000ff09> 8077 89 | <0000ff1a> <0000ff1f> 8081 90 | <0000ff5b> <0000ff5d> 8090 91 | endcidrange 92 | 93 | endcmap 94 | CMapName currentdict /CMap defineresource pop 95 | end 96 | end 97 | 98 | %%EndResource 99 | %%EOF 100 | -------------------------------------------------------------------------------- /3rdparty/resources/UniGB-UTF8-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniGB-UTF8-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniGB-UTF8-H) 6 | %%BeginResource: CMap (UniGB-UTF8-V) 7 | %%Title: (UniGB-UTF8-V Adobe GB1 5) 8 | %%Version: 13.004 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniGB-UTF8-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 5 def 59 | end def 60 | 61 | /CMapName /UniGB-UTF8-V def 62 | /CMapVersion 13.004 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25450] def 66 | 67 | /WMode 1 def 68 | 69 | 17 begincidchar 70 | 598 71 | 599 72 | 575 73 | 574 74 | 7706 75 | 578 76 | 573 77 | 7707 78 | 7708 79 | 579 80 | 7709 81 | 7710 82 | 600 83 | 596 84 | 597 85 | 7704 86 | 7711 87 | endcidchar 88 | 89 | 6 begincidrange 90 | 584 91 | 594 92 | 582 93 | 592 94 | 580 95 | 576 96 | endcidrange 97 | 98 | endcmap 99 | CMapName currentdict /CMap defineresource pop 100 | end 101 | end 102 | 103 | %%EndResource 104 | %%EOF 105 | -------------------------------------------------------------------------------- /3rdparty/resources/UniGB-UCS2-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniGB-UCS2-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniGB-UCS2-H) 6 | %%BeginResource: CMap (UniGB-UCS2-V) 7 | %%Title: (UniGB-UCS2-V Adobe GB1 4) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniGB-UCS2-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 4 def 59 | end def 60 | 61 | /CMapName /UniGB-UCS2-V def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25367] def 66 | 67 | /WMode 1 def 68 | 69 | 24 begincidrange 70 | <2014> <2014> 598 71 | <2026> <2026> 599 72 | <2225> <2225> 7708 73 | <3001> <3001> 575 74 | <3002> <3002> 574 75 | <3008> <300f> 584 76 | <3010> <3011> 594 77 | <3013> <3013> 7706 78 | <3014> <3015> 582 79 | <3016> <3017> 592 80 | 578 81 | 580 82 | 573 83 | 7707 84 | 576 85 | 7708 86 | 579 87 | 7709 88 | 7710 89 | 600 90 | 596 91 | 597 92 | 7704 93 | 7711 94 | endcidrange 95 | endcmap 96 | CMapName currentdict /CMap defineresource pop 97 | end 98 | end 99 | 100 | %%EndResource 101 | %%EOF 102 | -------------------------------------------------------------------------------- /src/exception.cpp: -------------------------------------------------------------------------------- 1 | /**************************************************************************** 2 | ** 3 | ** DocToText - Converts DOC, XLS, XLSB, PPT, RTF, ODF (ODT, ODS, ODP), 4 | ** OOXML (DOCX, XLSX, PPTX), iWork (PAGES, NUMBERS, KEYNOTE), 5 | ** ODFXML (FODP, FODS, FODT), PDF, EML and HTML documents to plain text. 6 | ** Extracts metadata and annotations. 7 | ** 8 | ** Copyright (c) 2006-2013, SILVERCODERS(R) 9 | ** http://silvercoders.com 10 | ** 11 | ** Project homepage: http://silvercoders.com/en/products/doctotext 12 | ** 13 | ** This program may be distributed and/or modified under the terms of the 14 | ** GNU General Public License version 2 as published by the Free Software 15 | ** Foundation and appearing in the file COPYING.GPL included in the 16 | ** packaging of this file. 17 | ** 18 | ** Please remember that any attempt to workaround the GNU General Public 19 | ** License using wrappers, pipes, client/server protocols, and so on 20 | ** is considered as license violation. If your program, published on license 21 | ** other than GNU General Public License version 2, calls some part of this 22 | ** code directly or indirectly, you have to buy commercial license. 23 | ** If you do not like our point of view, simply do not use the product. 24 | ** 25 | ** Licensees holding valid commercial license for this product 26 | ** may use this file in accordance with the license published by 27 | ** SILVERCODERS and appearing in the file COPYING.COM 28 | ** 29 | ** This program is distributed in the hope that it will be useful, 30 | ** but WITHOUT ANY WARRANTY; without even the implied warranty of 31 | ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 32 | ** 33 | *****************************************************************************/ 34 | 35 | #include "exception.h" 36 | 37 | #include 38 | 39 | using namespace doctotext; 40 | 41 | struct Exception::Implementation 42 | { 43 | std::list m_errors; 44 | }; 45 | 46 | Exception::Exception() throw() 47 | { 48 | try 49 | { 50 | impl = NULL; 51 | impl = new Implementation; 52 | } 53 | catch (std::bad_alloc& ba) 54 | { 55 | if (impl) 56 | delete impl; 57 | throw; 58 | } 59 | } 60 | 61 | Exception::Exception(const std::string &first_error_message) throw() 62 | { 63 | try 64 | { 65 | impl = NULL; 66 | impl = new Implementation; 67 | impl->m_errors.push_back(first_error_message); 68 | } 69 | catch (std::bad_alloc& ba) 70 | { 71 | if (impl) 72 | delete impl; 73 | throw; 74 | } 75 | } 76 | 77 | Exception::Exception(const Exception &ex) throw() 78 | { 79 | try 80 | { 81 | impl = NULL; 82 | impl = new Implementation; 83 | *impl = *ex.impl; 84 | } 85 | catch (std::bad_alloc& ba) 86 | { 87 | if (impl) 88 | delete impl; 89 | throw; 90 | } 91 | } 92 | 93 | Exception::~Exception() throw() 94 | { 95 | if (impl) 96 | delete impl; 97 | } 98 | 99 | Exception& Exception::operator = (const Exception& ex) throw() 100 | { 101 | *impl = *ex.impl; 102 | return *this; 103 | } 104 | 105 | 106 | std::string Exception::getBacktrace() 107 | { 108 | std::string backtrace; 109 | for (std::list::iterator it = impl->m_errors.begin(); it != impl->m_errors.end(); ++it) 110 | { 111 | backtrace += (*it) + "\n"; 112 | } 113 | return backtrace; 114 | } 115 | 116 | void Exception::appendError(const std::string &error_message) 117 | { 118 | impl->m_errors.push_back(error_message); 119 | } 120 | 121 | std::list::iterator Exception::getErrorIterator() const 122 | { 123 | return impl->m_errors.begin(); 124 | } 125 | 126 | size_t Exception::getErrorCount() const 127 | { 128 | return impl->m_errors.size(); 129 | } 130 | -------------------------------------------------------------------------------- /3rdparty/resources/UniGB-UTF32-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (UniGB-UTF32-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (UniGB-UTF32-H) 6 | %%BeginResource: CMap (UniGB-UTF32-V) 7 | %%Title: (UniGB-UTF32-V Adobe GB1 5) 8 | %%Version: 1.004 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /UniGB-UTF32-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (GB1) def 58 | /Supplement 5 def 59 | end def 60 | 61 | /CMapName /UniGB-UTF32-V def 62 | /CMapVersion 1.004 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25604] def 66 | 67 | /WMode 1 def 68 | 69 | 17 begincidchar 70 | <00002014> 598 71 | <00002026> 599 72 | <00003001> 575 73 | <00003002> 574 74 | <00003013> 7706 75 | <0000ff01> 578 76 | <0000ff0c> 573 77 | <0000ff0e> 7707 78 | <0000ff1d> 7708 79 | <0000ff1f> 579 80 | <0000ff3b> 7709 81 | <0000ff3d> 7710 82 | <0000ff3f> 600 83 | <0000ff5b> 596 84 | <0000ff5d> 597 85 | <0000ff5e> 7704 86 | <0000ffe3> 7711 87 | endcidchar 88 | 89 | 6 begincidrange 90 | <00003008> <0000300f> 584 91 | <00003010> <00003011> 594 92 | <00003014> <00003015> 582 93 | <00003016> <00003017> 592 94 | <0000ff08> <0000ff09> 580 95 | <0000ff1a> <0000ff1b> 576 96 | endcidrange 97 | 98 | endcmap 99 | CMapName currentdict /CMap defineresource pop 100 | end 101 | end 102 | 103 | %%EndResource 104 | %%EOF 105 | -------------------------------------------------------------------------------- /3rdparty/resources/78-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (78-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (78-H) 6 | %%BeginResource: CMap (78-V) 7 | %%Title: (78-V Adobe Japan1 0) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /78-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Japan1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /78-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25353] def 66 | 67 | /WMode 1 def 68 | 69 | 27 begincidrange 70 | <2122> <2123> 7887 71 | <2131> <2132> 7889 72 | <213c> <213e> 7891 73 | <2141> <2145> 7894 74 | <214a> <215b> 7899 75 | <2161> <2161> 7917 76 | <2421> <2421> 7918 77 | <2423> <2423> 7919 78 | <2425> <2425> 7920 79 | <2427> <2427> 7921 80 | <2429> <2429> 7922 81 | <2443> <2443> 7923 82 | <2463> <2463> 7924 83 | <2465> <2465> 7925 84 | <2467> <2467> 7926 85 | <246e> <246e> 7927 86 | <2521> <2521> 7928 87 | <2523> <2523> 7929 88 | <2525> <2525> 7930 89 | <2527> <2527> 7931 90 | <2529> <2529> 7932 91 | <2543> <2543> 7933 92 | <2563> <2563> 7934 93 | <2565> <2565> 7935 94 | <2567> <2567> 7936 95 | <256e> <256e> 7937 96 | <2575> <2576> 7938 97 | endcidrange 98 | endcmap 99 | CMapName currentdict /CMap defineresource pop 100 | end 101 | end 102 | 103 | %%EndResource 104 | %%EOF 105 | -------------------------------------------------------------------------------- /3rdparty/resources/V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (H) 6 | %%BeginResource: CMap (V) 7 | %%Title: (V Adobe Japan1 1) 8 | %%Version: 12.002 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Japan1) def 58 | /Supplement 1 def 59 | end def 60 | 61 | /CMapName /V def 62 | /CMapVersion 12.002 def 63 | /CMapType 1 def 64 | 65 | /UIDOffset 850 def 66 | /XUID [1 10 25340] def 67 | 68 | /WMode 1 def 69 | 70 | 27 begincidrange 71 | <2122> <2123> 7887 72 | <2131> <2132> 7889 73 | <213c> <213e> 7891 74 | <2141> <2145> 7894 75 | <214a> <215b> 7899 76 | <2161> <2161> 7917 77 | <2421> <2421> 7918 78 | <2423> <2423> 7919 79 | <2425> <2425> 7920 80 | <2427> <2427> 7921 81 | <2429> <2429> 7922 82 | <2443> <2443> 7923 83 | <2463> <2463> 7924 84 | <2465> <2465> 7925 85 | <2467> <2467> 7926 86 | <246e> <246e> 7927 87 | <2521> <2521> 7928 88 | <2523> <2523> 7929 89 | <2525> <2525> 7930 90 | <2527> <2527> 7931 91 | <2529> <2529> 7932 92 | <2543> <2543> 7933 93 | <2563> <2563> 7934 94 | <2565> <2565> 7935 95 | <2567> <2567> 7936 96 | <256e> <256e> 7937 97 | <2575> <2576> 7938 98 | endcidrange 99 | endcmap 100 | CMapName currentdict /CMap defineresource pop 101 | end 102 | end 103 | 104 | %%EndResource 105 | %%EOF 106 | -------------------------------------------------------------------------------- /3rdparty/resources/78-EUC-V: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap 2 | %%DocumentNeededResources: ProcSet (CIDInit) 3 | %%DocumentNeededResources: CMap (78-EUC-H) 4 | %%IncludeResource: ProcSet (CIDInit) 5 | %%IncludeResource: CMap (78-EUC-H) 6 | %%BeginResource: CMap (78-EUC-V) 7 | %%Title: (78-EUC-V Adobe Japan1 0) 8 | %%Version: 10.003 9 | %%Copyright: ----------------------------------------------------------- 10 | %%Copyright: Copyright 1990-2009 Adobe Systems Incorporated. 11 | %%Copyright: All rights reserved. 12 | %%Copyright: 13 | %%Copyright: Redistribution and use in source and binary forms, with or 14 | %%Copyright: without modification, are permitted provided that the 15 | %%Copyright: following conditions are met: 16 | %%Copyright: 17 | %%Copyright: Redistributions of source code must retain the above 18 | %%Copyright: copyright notice, this list of conditions and the following 19 | %%Copyright: disclaimer. 20 | %%Copyright: 21 | %%Copyright: Redistributions in binary form must reproduce the above 22 | %%Copyright: copyright notice, this list of conditions and the following 23 | %%Copyright: disclaimer in the documentation and/or other materials 24 | %%Copyright: provided with the distribution. 25 | %%Copyright: 26 | %%Copyright: Neither the name of Adobe Systems Incorporated nor the names 27 | %%Copyright: of its contributors may be used to endorse or promote 28 | %%Copyright: products derived from this software without specific prior 29 | %%Copyright: written permission. 30 | %%Copyright: 31 | %%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 32 | %%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 33 | %%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 34 | %%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 35 | %%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 36 | %%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 37 | %%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 38 | %%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 39 | %%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 40 | %%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 41 | %%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 42 | %%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 43 | %%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 44 | %%Copyright: ----------------------------------------------------------- 45 | %%EndComments 46 | 47 | /CIDInit /ProcSet findresource begin 48 | 49 | 12 dict begin 50 | 51 | begincmap 52 | 53 | /78-EUC-H usecmap 54 | 55 | /CIDSystemInfo 3 dict dup begin 56 | /Registry (Adobe) def 57 | /Ordering (Japan1) def 58 | /Supplement 0 def 59 | end def 60 | 61 | /CMapName /78-EUC-V def 62 | /CMapVersion 10.003 def 63 | /CMapType 1 def 64 | 65 | /XUID [1 10 25355] def 66 | 67 | /WMode 1 def 68 | 69 | 27 begincidrange 70 | 7887 71 | 7889 72 | 7891 73 | 7894 74 | 7899 75 | 7917 76 | 7918 77 | 7919 78 | 7920 79 | 7921 80 | 7922 81 | 7923 82 | 7924 83 | 7925 84 | 7926 85 | 7927 86 | 7928 87 | 7929 88 | 7930 89 | 7931 90 | 7932 91 | 7933 92 | 7934 93 | 7935 94 | 7936 95 | 7937 96 | 7938 97 | endcidrange 98 | endcmap 99 | CMapName currentdict /CMap defineresource pop 100 | end 101 | end 102 | 103 | %%EndResource 104 | %%EOF 105 | --------------------------------------------------------------------------------