You can convert the character set of a subfile at the time the subfile is extracted from the container and before it is filtered. This is most often used to set the character set of a mail message's body text. See Filter PDF Files for more information.
To specify the source and target character set of a subfile
ExtSubFileExtractConfig
object to set the source and target character set.Call the extExtractSubFile
method of the Filter object and pass in the ExtSubFileExtractConfig
object. For example:
extconfig = new ExtSubFileExtractConfig(); extconfig.setSourceCharset(m_sourceCharSet); extconfig.setTargetCharset(m_outputCharSet); extinfo = m_objFilter.extExtractSubFile(extContextID, i, extconfig);