LinearizationParams
Vue de l’ensemble
‘LinearizationParams’ est une classe dans Aspose.PDF FOSS pour Java.
Il représente le dictionnaire des paramètres de la linéarisation (Table F.1, ISO 32000-1:2008).
Cette classe fournit 21 méthodes pour travailler avec les objets de LinearizationParams dans des programmes Java. Les méthodologies disponibles comprennent: ‘detect’, ‘getEndOfFirstPage’, getFileLength', ‘getPirtPagesNumber’, ' getFirePagObjNom', ’getHintStreamLongth’, ‘ghetHentStreemOffset’, getsNutPags’, ‚getNunPays‘, ‘GetVersion, isValid` , ‘parse’ et 9 méthode supplémentaires. Tous les membres publics sont accessibles à toute application Java après l’installation de l’Aspose.PDF FOSS pour le package Java . Propriétés : ‘OffirPayer’, ‘‘Lang’‘first, ‘‘NitPyng’n’Nim’Ling’Sett, plus 3M’Stamper’Stratm, et plus.
Propriétés
| Name | Type | Access | Description |
|---|---|---|---|
version | double | Read | Returns the linearization version (always 1.0). |
fileLength | long | Read | Returns the total file length (/L). |
hintStreamOffset | long | Read | Returns the primary hint stream byte offset (/H[0]). |
hintStreamLength | int | Read | Returns the primary hint stream length (/H[1]). |
firstPageObjNum | int | Read | Returns the first page’s page object number (/O). |
endOfFirstPage | long | Read | Returns the offset of end of first page section (/E). |
numPages | int | Read | Returns the number of pages (/N). |
mainXRefOffset | long | Read | Returns the offset of the main xref table (/T). |
firstPageNumber | int | Read | Returns the first page number (/P), default 0. |
méthodes
| Signature | Description |
|---|---|
parse(dict: PdfDictionary) → LinearizationParams | Parses linearization parameters from a PdfDictionary. |
toDictionary() → PdfDictionary | Writes this linearization parameter dictionary as a PDF dictionary. |
detect(reader: RandomAccessReader) → LinearizationParams | Detects whether a PDF is linearized by scanning the first 1024 bytes |
| for a linearization parameter dictionary. | |
getVersion() → double | Returns the linearization version (always 1.0). |
getFileLength() → long | Returns the total file length (/L). |
setFileLength(fileLength: long) | Sets the file length value. |
getHintStreamOffset() → long | Returns the primary hint stream byte offset (/H[0]). |
setHintStreamOffset(offset: long) | Sets the hint stream offset value. |
getHintStreamLength() → int | Returns the primary hint stream length (/H[1]). |
setHintStreamLength(length: int) | Sets the hint stream length value. |
getFirstPageObjNum() → int | Returns the first page’s page object number (/O). |
setFirstPageObjNum(num: int) | Sets the first page obj num value. |
getEndOfFirstPage() → long | Returns the offset of end of first page section (/E). |
setEndOfFirstPage(offset: long) | Sets the end of first page value. |
getNumPages() → int | Returns the number of pages (/N). |
setNumPages(n: int) | Sets the num pages value. |
getMainXRefOffset() → long | Returns the offset of the main xref table (/T). |
setMainXRefOffset(offset: long) | Sets the main x ref offset value. |
getFirstPageNumber() → int | Returns the first page number (/P), default 0. |
setFirstPageNumber(num: int) | Sets the first page number value. |
isValid(actualFileLength: long) → boolean | Validates that /L matches the actual file length. |
Voir aussi
- Aspose.PDF pour Java — API d’entreprise