Macros/General/006/en

Description
A hybrid PDF is a file which can be read like any other PDF, but which contains a source document in PDF format, allowing you to modify it using LibreOffice. It can be created with the menu command.

The following macro shows how to do this in LibreOffice Basic. The array propFich in this example specifies the filter to use (calc_pdf_Export) and the selected options. The filterProps array specifies the text to be exported and contains a switch IsAddStream to determine whether the export is to take place.

Code
In LibreOffice Basic:

ODS file to test macro

 * [[Media:Example macro for exporting to hybrid PDF.ods|Download example ODS file with this macro included]]