DynaPDF Manual - Page 734

Previous Page 733   Index   Next Page 735

Function Reference
Page 734 of 818
LBOOL pdfSetJPEGQuality(
const PPDF* IPDF, // Instance pointer
UI32 Value)
// Quality (0..100 or 0..-1000)
The function sets the quality for JPEG and JPEG 2000 compressed images. Lower values cause
higher compression rates, however, worse image quality.
The JPEG encoder supports a range from 0 through 100. The value can be set as positve or negative
number. The JPEG 2000 encoder supports a positive range from 0 through 1000, and from 0 through
-1000. Values outside the allowed range are adjusted to next nearest valid value. The larger range is
supported to achieve better backwards compatibility to older DynaPDF versions.
A negative value deactivates pass-through mode of the JPEG and JPEG 2000 decoders. That means,
an image will be re-compressed, also if not necessary.
The JPEG 2000 encoder divides a value greater 100 by 10 and uses finally the absolute value.
The values 0, 100, or -1000 activate loss-less encoding. Loss-less encoding is supported by JPEG 2000
Default value = 70
Return values:
If the function succeeds the return value is 1. If the function fails the return value is 0.
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

Previous topic: SetItalicAngle

Next topic: SetLeading

Start Chat