|
iPrintPDF (Function) In french: iImprimePDF Prints the content of a PDF file from an iPhone/iPad or Android application. Prints the content: What is the print destination? Versions 23 and later New in version 23
IF iPrintPDF("MyFile.PDF") THEN Info("Print successfully performed") END
Syntax
Printing a PDF file Hide the details
<Result> = iPrintPDF(<Name of PDF file> [, <Password> [, <Sizing> [, <List of pages>]]])
<Result>: Boolean - True if the print was performed,
- False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Name of PDF file>: Character string (with quotes) Name and path of PDF file to print. This parameter can correspond to a full path or to a relative path in relation to the current directory (returned by fCurrentDir). This parameter is case sensitive. Reminder: On iPhone/iPad, an application has the rights to write into its setup directory or into one of its subdirectories. <Password>: Character string (with quotes) Versions 23 and later- Password for opening the PDF file,
- Empty string ("") if the file has no password.
Caution: This parameter is available from version 230042. New in version 23- Password for opening the PDF file,
- Empty string ("") if the file has no password.
Caution: This parameter is available from version 230042.- Password for opening the PDF file,
- Empty string ("") if the file has no password.
Caution: This parameter is available from version 230042.
<Sizing>: Integer constant Versions 23 and laterPrint size: | | iHomothetic | The pages of PDF file are enlarged or reduced in homothetic mode so that they adapt to the output format. | iHomotheticNoEnlargement | The pages of PDF file are reduced in homothetic mode so that they adapt to the output format. The pages that use a format less than the output format keep their format and are centered. | iRealSize | Print in real size. The pages that use a format: - smaller than the output format are centered in the page.
- bigger than the output format are truncated and are centered in the page.
| Caution: This parameter is available from version 230042. New in version 23Print size: | | iHomothetic | The pages of PDF file are enlarged or reduced in homothetic mode so that they adapt to the output format. | iHomotheticNoEnlargement | The pages of PDF file are reduced in homothetic mode so that they adapt to the output format. The pages that use a format less than the output format keep their format and are centered. | iRealSize | Print in real size. The pages that use a format: - smaller than the output format are centered in the page.
- bigger than the output format are truncated and are centered in the page.
| Caution: This parameter is available from version 230042. Print size: | | iHomothetic | The pages of PDF file are enlarged or reduced in homothetic mode so that they adapt to the output format. | iHomotheticNoEnlargement | The pages of PDF file are reduced in homothetic mode so that they adapt to the output format. The pages that use a format less than the output format keep their format and are centered. | iRealSize | Print in real size. The pages that use a format: - smaller than the output format are centered in the page.
- bigger than the output format are truncated and are centered in the page.
| Caution: This parameter is available from version 230042.
<List of pages>: Character string (with quotes) Versions 23 and laterList of pages to print. You have the ability to specify the range of pages to print separated by a comma, each range being in 'X-Y' format where X and Y are numbers of pages. Caution: This parameter is available from version 230042. New in version 23List of pages to print. You have the ability to specify the range of pages to print separated by a comma, each range being in 'X-Y' format where X and Y are numbers of pages. Caution: This parameter is available from version 230042. List of pages to print. You have the ability to specify the range of pages to print separated by a comma, each range being in 'X-Y' format where X and Y are numbers of pages. Caution: This parameter is available from version 230042.
Versions 23 and later New in version 23 Versions 23 and later New in version 23Component : wd250etatexe.dll
This page is also available for…
|
|
|
| |
| | https://youtu.be/D8u_sYcjEBk
http://windevdesenvolvimento.blogspot.com.br/2018/05/dicas-1761-publica-windev-novidade23-12.html
https://groups.google.com/d/forum/amarildowindev
// EXEMPLO
sFile is string sFile = fSelect("", "", "Select a file...", "PDF" + TAB + "*.PDF", "*.PDF") EDT_NOME_ARQUIVO_PDF=sFile
/ VOU FAZER COM QUE IMPRIMA NA TELA PRIMEIRO // I'LL MAKE YOU PRINT ON THE FIRST SCREEN // Je vais vous faire imprimer sur le premier écran
iPreview(ipvZoom100)
// VOU MANDAR IMPRIMIR PDF // I WILL SEND PRINT PDF // J'enverrai l'impression PDF
iPrintPDF(EDT_NOME_ARQUIVO_PDF,"",iRealSize,"")
|
|
|
|
| |
| |
| |
| |
| |
| |
| | |
| |