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)]
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: -File='MyFile.pdf', -Size='A4')]
[Var:'Old_PDF'=(PDF_Read:-File='/documents/somepdf.pdf')]
[$New_PDF->(InsertPage: $Old_PDF, 1)]
Use the [PDF_Doc->InsertPage] tag with the optional -NewPage parameter. The example below adds the first page of the somepdf.pdf PDF after all existing pages in the [PDF_Doc] variable.
[Var:'New_PDF'=(PDF_Doc: -File='MyFile.pdf', -Size='A4')]
[Var:'Old_PDF'=(PDF_Read:-File='/documents/somepdf.pdf')]
[$New_PDF->(InsertPage: $Old_PDF, 1, -NewPage='true')]
Use the [PDF_Doc->InsertPage] tag with the optional -Top and/or -Width parameters. The example below places the inserted page 50 points away from the top and left sides of the new document page frame.
[Var:'New_PDF'=(PDF_Doc: -File='MyFile.pdf', -Size='A4')]
[Var:'Old_PDF'=(PDF_Read:-File='/documents/somepdf.pdf')]
[$New_PDF->(InsertPage: $Old_PDF, 1, -Width=50, -Height=50)]
Use the [PDF_Doc->InsertPage] tag with the optional -Height or -Width parameter. The example below proportionally reduces the size of the inserted page by 50% using the -Width and -Proportional parameters.
[Var:'New_PDF'=(PDF_Doc: -File='MyFile.pdf', -Size='A4')]
[Var:'Old_PDF'=(PDF_Read:-File='/documents/somepdf.pdf')]
[$New_PDF->(InsertPage: $Old_PDF, 1, -Width='50%', -Proportional)]
Tag Link | [PDF_Doc->InsertPage] | Category | |
---|---|---|---|
Type | Member | Data Source | Any |
Support | Preferred | Version | 7.0 |
Output Type | None | Security | None |
Implementation | LJAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft