DynaPDF Manual - Page 706

Previous Page 705   Index   Next Page 707

Function Reference
Page 706 of 787
SetJPEGQuality
Syntax:
LBOOL pdfSetJPEGQuality(
const PPDF* IPDF, // Instance pointer
UI32 Value)
// Quality in percent (0..100 or 0..1000)
The function sets the quality of JPEG compressed images in percent if JPEG compression is used.
Lower values cause higher compression rates, however, worse image quality.
The function accepts also negative values. A negative value indicates that the pass-through mode
for JPEG images should be disabled. Note that JPEG images are always recompressed if the pass-
through mode is disabled.
If the JPEG2000 compression filter is used the value represents a divisor of the uncompressed image
size to the wished compressed image size. The possible range is 0 to 1000. If the value is 0 or 1000
the loss-less variant of JPEG compression is used (see also InsertImage()). Lower values cause higher
compression rates, however, worse image quality.
Default value = 70
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
SetLanguage
Syntax:
LBOOL pdfSetLanguage(
const PPDF* IPDF,
// Instance pointer
const char* ISOTag) // Language identifier see below
The property specifies the language of the document. The document's language should always be
set when creating Tagged PDF files or Interactive Forms. The spell check feature in Adobe's Acrobat
depends on the properly defined document language.
Language Identifiers
The value of the language property is a string that specifies the language with a language identifier
having the syntax, defined in Internet RFC 3066, Tags for the Identification of Languages.
This syntax, which is summarized below, is also used to identify languages in XML, according to the
World Wide Web Consortium document Extensible Markup Language (XML) 1.0.
Language identifiers can be based on codes defined by the International Organization for
Standardization in ISO 639 and ISO 3166 or registered with the Internet Assigned Numbers
Authoring (IANA, whose Web site is located at http://www.iana.org), or they can include codes
created for private use. A language identifier consists of a primary code optionally followed by one
or more sub codes (each preceded by a hyphen). The primary code can be any of the following:
 

Previous topic: SetItalicAngle

Next topic: SetLeading, SetLicenseKey

Web links on this page:

Start Chat