PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Prints the content:
  • of a PDF file.
What is the print destination?
    Versions 23 and later
    Reports and Queries This function is now available for WINDEV applications.
    New in version 23
    Reports and Queries This function is now available for WINDEV applications.
    Reports and Queries This function is now available for WINDEV applications.
    Example
    IF iPrintPDF("MyFile.PDF") THEN
    Info("Printed successfully")
    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.
    New in version 23
    • Password for opening the PDF file,
    • Empty string ("") if the file has no password.
    • Password for opening the PDF file,
    • Empty string ("") if the file has no password.
    <Sizing>: Integer constant
    Versions 23 and later
    Print size:
    iHomotheticHomothetic enlargement or reduction of the PDF document pages to adapt them to the output format, ignoring physical margins.
    This constant corresponds to the option "Fit to paper size" available in PDF printing software.
    iHomotheticNoEnlargementHomothetic reduction of the PDF document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Shrink to fit paper size" available in PDF printing software.
    Versions 25 and later
    iHomotheticNoEnlargementPrintableZone
    New in version 25
    iHomotheticNoEnlargementPrintableZone
    iHomotheticNoEnlargementPrintableZone
    Homothetic reduction of the PDF document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Fit to printer margins" available in PDF printing software.
    iRealSizePrint 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.

    New in version 23
    Print size:
    iHomotheticHomothetic enlargement or reduction of the PDF document pages to adapt them to the output format, ignoring physical margins.
    This constant corresponds to the option "Fit to paper size" available in PDF printing software.
    iHomotheticNoEnlargementHomothetic reduction of the PDF document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Shrink to fit paper size" available in PDF printing software.
    Versions 25 and later
    iHomotheticNoEnlargementPrintableZone
    New in version 25
    iHomotheticNoEnlargementPrintableZone
    iHomotheticNoEnlargementPrintableZone
    Homothetic reduction of the PDF document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Fit to printer margins" available in PDF printing software.
    iRealSizePrint 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.

    Print size:
    iHomotheticHomothetic enlargement or reduction of the PDF document pages to adapt them to the output format, ignoring physical margins.
    This constant corresponds to the option "Fit to paper size" available in PDF printing software.
    iHomotheticNoEnlargementHomothetic reduction of the PDF document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Shrink to fit paper size" available in PDF printing software.
    Versions 25 and later
    iHomotheticNoEnlargementPrintableZone
    New in version 25
    iHomotheticNoEnlargementPrintableZone
    iHomotheticNoEnlargementPrintableZone
    Homothetic reduction of the PDF document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Fit to printer margins" available in PDF printing software.
    iRealSizePrint 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.

    <List of pages>: Character string (with quotes)
    Versions 23 and later
    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.
    New in version 23
    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.
    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.
    Versions 23 and later
    Reports and Queries

    Printing a buffer corresponding to a PDF file Hide the details

    <Result> = iPrintPDF(<Buffer name> [, <Password> [, <Sizing> [, <List of pages>]]])
    <Result>: Boolean
    • True if the print was performed,
    • False otherwise.
    <Buffer name>: Buffer
    Name of Buffer variable corresponding to the PDF file to print.
    <Password>: Character string (with quotes)
    • Password for opening the PDF file,
    • Empty string ("") if the file has no password.
    <Sizing>: Integer constant
    Print size:
    iHomotheticHomothetic enlargement or reduction of the PDF document pages to adapt them to the output format, ignoring physical margins.
    This constant corresponds to the option "Fit to paper size" available in PDF printing software.
    iHomotheticNoEnlargementHomothetic reduction of the PDF document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Shrink to fit paper size" available in PDF printing software.
    Versions 25 and later
    iHomotheticNoEnlargementPrintableZone
    New in version 25
    iHomotheticNoEnlargementPrintableZone
    iHomotheticNoEnlargementPrintableZone
    Homothetic reduction of the PDF document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Fit to printer margins" available in PDF printing software.
    iRealSizePrint 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.

    <List of pages>: Character string (with quotes)
    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.
    New in version 23
    Reports and Queries

    Printing a buffer corresponding to a PDF file Hide the details

    <Result> = iPrintPDF(<Buffer name> [, <Password> [, <Sizing> [, <List of pages>]]])
    <Result>: Boolean
    • True if the print was performed,
    • False otherwise.
    <Buffer name>: Buffer
    Name of Buffer variable corresponding to the PDF file to print.
    <Password>: Character string (with quotes)
    • Password for opening the PDF file,
    • Empty string ("") if the file has no password.
    <Sizing>: Integer constant
    Print size:
    iHomotheticHomothetic enlargement or reduction of the PDF document pages to adapt them to the output format, ignoring physical margins.
    This constant corresponds to the option "Fit to paper size" available in PDF printing software.
    iHomotheticNoEnlargementHomothetic reduction of the PDF document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Shrink to fit paper size" available in PDF printing software.
    Versions 25 and later
    iHomotheticNoEnlargementPrintableZone
    New in version 25
    iHomotheticNoEnlargementPrintableZone
    iHomotheticNoEnlargementPrintableZone
    Homothetic reduction of the PDF document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Fit to printer margins" available in PDF printing software.
    iRealSizePrint 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.

    <List of pages>: Character string (with quotes)
    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.
    Reports and Queries

    Printing a buffer corresponding to a PDF file Hide the details

    <Result> = iPrintPDF(<Buffer name> [, <Password> [, <Sizing> [, <List of pages>]]])
    <Result>: Boolean
    • True if the print was performed,
    • False otherwise.
    <Buffer name>: Buffer
    Name of Buffer variable corresponding to the PDF file to print.
    <Password>: Character string (with quotes)
    • Password for opening the PDF file,
    • Empty string ("") if the file has no password.
    <Sizing>: Integer constant
    Print size:
    iHomotheticHomothetic enlargement or reduction of the PDF document pages to adapt them to the output format, ignoring physical margins.
    This constant corresponds to the option "Fit to paper size" available in PDF printing software.
    iHomotheticNoEnlargementHomothetic reduction of the PDF document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Shrink to fit paper size" available in PDF printing software.
    Versions 25 and later
    iHomotheticNoEnlargementPrintableZone
    New in version 25
    iHomotheticNoEnlargementPrintableZone
    iHomotheticNoEnlargementPrintableZone
    Homothetic reduction of the PDF document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Fit to printer margins" available in PDF printing software.
    iRealSizePrint 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.

    <List of pages>: Character string (with quotes)
    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.
    Versions 23 and later
    Reports and Queries

    Printing the content of a PDF Reader control Hide the details

    <Result> = iPrintPDF(<PDF Reader control> [, <Sizing> [, <List of pages>]])
    <Result>: Boolean
    • True if the print was performed,
    • False otherwise.
    <PDF Reader control>: Character string (with or without quotes)
    Name of PDF Reader control displaying the PDF file to print
    <Sizing>: Integer constant
    Print size:
    iHomotheticHomothetic enlargement or reduction of the PDF document pages to adapt them to the output format, ignoring physical margins.
    This constant corresponds to the option "Fit to paper size" available in PDF printing software.
    iHomotheticNoEnlargementHomothetic reduction of the PDF document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Shrink to fit paper size" available in PDF printing software.
    Versions 25 and later
    iHomotheticNoEnlargementPrintableZone
    New in version 25
    iHomotheticNoEnlargementPrintableZone
    iHomotheticNoEnlargementPrintableZone
    Homothetic reduction of the PDF document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Fit to printer margins" available in PDF printing software.
    iRealSizePrint 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.

    <List of pages>: Character string (with quotes)
    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.
    New in version 23
    Reports and Queries

    Printing the content of a PDF Reader control Hide the details

    <Result> = iPrintPDF(<PDF Reader control> [, <Sizing> [, <List of pages>]])
    <Result>: Boolean
    • True if the print was performed,
    • False otherwise.
    <PDF Reader control>: Character string (with or without quotes)
    Name of PDF Reader control displaying the PDF file to print
    <Sizing>: Integer constant
    Print size:
    iHomotheticHomothetic enlargement or reduction of the PDF document pages to adapt them to the output format, ignoring physical margins.
    This constant corresponds to the option "Fit to paper size" available in PDF printing software.
    iHomotheticNoEnlargementHomothetic reduction of the PDF document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Shrink to fit paper size" available in PDF printing software.
    Versions 25 and later
    iHomotheticNoEnlargementPrintableZone
    New in version 25
    iHomotheticNoEnlargementPrintableZone
    iHomotheticNoEnlargementPrintableZone
    Homothetic reduction of the PDF document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Fit to printer margins" available in PDF printing software.
    iRealSizePrint 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.

    <List of pages>: Character string (with quotes)
    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.
    Reports and Queries

    Printing the content of a PDF Reader control Hide the details

    <Result> = iPrintPDF(<PDF Reader control> [, <Sizing> [, <List of pages>]])
    <Result>: Boolean
    • True if the print was performed,
    • False otherwise.
    <PDF Reader control>: Character string (with or without quotes)
    Name of PDF Reader control displaying the PDF file to print
    <Sizing>: Integer constant
    Print size:
    iHomotheticHomothetic enlargement or reduction of the PDF document pages to adapt them to the output format, ignoring physical margins.
    This constant corresponds to the option "Fit to paper size" available in PDF printing software.
    iHomotheticNoEnlargementHomothetic reduction of the PDF document pages to adapt them to the output format, ignoring physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Shrink to fit paper size" available in PDF printing software.
    Versions 25 and later
    iHomotheticNoEnlargementPrintableZone
    New in version 25
    iHomotheticNoEnlargementPrintableZone
    iHomotheticNoEnlargementPrintableZone
    Homothetic reduction of the PDF document pages to adapt them to the output format, taking into account physical margins. Pages with a smaller format keep their format and are centered.
    This constant corresponds to the option "Fit to printer margins" available in PDF printing software.
    iRealSizePrint 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.

    <List of pages>: Character string (with quotes)
    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.
    Remarks
    Business / UI classification : Neutral code
    Component : wd250etatexe.dll
    Minimum version required
    • Version 18
    This page is also available for…
    Comments
    EXEMPLO IPRINTPDF
    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,"")


    De matos
    29 May 2018