Tag Link | [PDF_Doc->InsertPage] | Category | |
---|---|---|---|
Type | Member | Source Available | Yes |
Support | Preferred | Version | 7.0 |
Change | Unchanged | Data Source | Any |
Output Type | None | Security | None |
Implementation | LJAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Inserts a page from a [PDF_Read] object into a [PDF_Doc] variable. Requires the name of a [PDF_Read] variable, followed by a comma and the number of the page to insert.
[$PDF_Doc->(InsertPage: PDF_Read Variable, Integer)]
Required Parameters | |
---|---|
[PDF_Read] Variable | The name of a [PDF_Read] object to insert. |
Page Number | The number of the page in the [PDF_Read] object to insert. Follows the [PDF_Read] variable parameter (comma |
Optional Parameters | |
-NewPage | Keyword parameter specifying that the new page should be appended at the end of the document. Otherwise the page is drawn over the first page in the [PDF_Doc] variable by default. Requires a boolean value of 'true' to work (e.g. |
-Top | If the page being inserted is shorter than the current pages in the [PDF_Doc] variable, this parameter may be used to specifiy the offset of the new page from the top of the current page frame in points. |
-Left | If the page being inserted is not as wide the current pages in the [PDF_Doc] variable, this parameter may be used to specifiy the offset of the new page from the left of the current page frame in points. |
-Width | Scales the inserted page by width. Requires either a point width value, or a percentage string (e.g. 50%). |
-Height | Scales the inserted page by height. Requires either a point height value, or a percentage string (e.g. 50%). |
-Rotate | Specifies that the inserted PDF should be rotated. Positive degrees are counter |
To insert an existing page into a new PDF document:
Use the [PDF_Doc->InsertPage] tag with a defined [PDF_Read] variable. The example below makes the first page of the somepdf.pdf PDF the first page of the [PDF_Doc] variable.
[Var:'New_PDF'=(PDF_Doc:
[Var:'Old_PDF'=(PDF_Read:
[$New_PDF->(InsertPage: $Old_PDF, 1)]
To insert an existing page at the end of a new PDF document:
Use the [PDF_Doc->InsertPage] tag with the optional
[Var:'New_PDF'=(PDF_Doc:
[Var:'Old_PDF'=(PDF_Read:
[$New_PDF->(InsertPage: $Old_PDF, 1,
To place an inserted page:
Use the [PDF_Doc->InsertPage] tag with the optional
[Var:'New_PDF'=(PDF_Doc:
[Var:'Old_PDF'=(PDF_Read:
[$New_PDF->(InsertPage: $Old_PDF, 1,
To scale an inserted page:
Use the [PDF_Doc->InsertPage] tag with the optional
[Var:'New_PDF'=(PDF_Doc:
[Var:'Old_PDF'=(PDF_Read:
[$New_PDF->(InsertPage: $Old_PDF, 1,