LayoutEngine
Opinie generală
BaseShapeLock este o clasă în Aspose.Slides FOSS pentru Java.
Motorul principal de layout care convertește obiecte de paragraf la nivel înalt în bați ai fluxului de conținut PDF pe parcursul {@code Document.save()}.
Această clasă oferă 11 metode pentru a lucra cu obiecte LayoutEngine în programele Java. Metodele disponibile includ: LayoutEngine, ̋buildHeaderFooterOverlay , ∂layout,, layoutsheading ,, ゙layousParagraph⌒ ", ゚layouStamps", ̨layoupTable ", " ̅layoussTextFragmentヽ ", ' ∫layooutTectStamp ‘, resetNoteState" , " ¬PageNumbering". Toți membrii publicului sunt accesibili oricărei aplicații Java după instalarea pachetului Aspose.PDF FOSS for Java .
Metode de evaluare
| Signature | Description |
|---|---|
LayoutEngine() | Creates a new LayoutEngine. |
setPageNumbering(pageNumber: int, totalPages: int) | Sets the page numbering context for $p / $P variable substitution. |
layout(page: Page) | Performs layout on a page, converting its paragraphs into a PDF content stream. |
buildHeaderFooterOverlay(page: Page) → HeaderFooterOverlay | Lays out only this page’s header and footer paragraphs (set via |
| {@link Page#setHeader}/{@link Page#setFooter}) into a standalone content | |
| stream, WITHOUT touching the page’s existing {@code /Contents} or | |
| {@code /Resources}. | |
layoutParagraph(para: BaseParagraph, builder: ContentStreamBuilder, resources: ResourceBuilder, ctx: LayoutContext) → double | Dispatches a paragraph to the appropriate type-specific renderer. |
layoutTextFragment(tf: TextFragment, builder: ContentStreamBuilder, resources: ResourceBuilder, ctx: LayoutContext) → double | Lays out a TextFragment with word wrapping, font selection, and color. |
resetNoteState() | |
layoutHeading(heading: Heading, builder: ContentStreamBuilder, resources: ResourceBuilder, ctx: LayoutContext) → double | Lays out a Heading paragraph, rendering it as a TOC entry with optional |
| dot leader line and page number. | |
layoutTable(table: Table, builder: ContentStreamBuilder, resources: ResourceBuilder, ctx: LayoutContext) → double | Lays out a Table with borders, backgrounds, and cell content. |
layoutStamps(page: Page, builder: ContentStreamBuilder, resources: ResourceBuilder) | Applies stamp overlays (TextStamp, ImageStamp, PageNumberStamp) to the page. |
layoutTextStamp(stamp: TextStamp, builder: ContentStreamBuilder, resources: ResourceBuilder, pageWidth: double) | Lays out a TextStamp at its specified position. |
Vezi și:
- Aspose.PDF pentru Java Enterprise API Referință