

Advantages and Disadvantages of Microsoft Office PDF Editor When it comes to comparison with one of the best PDF editing platforms in the market, such as PDFelement, some considerable differences need to be realized, which are featured as follows. Microsoft Office PDF editor features some of the best PDF editing tools in the market. The Comparison of Microsoft PDF Editor and PDFelement Get more details about how to edit scanned PDF files. But it will let you edit the document in the easiest possible way. Normally, a scanned document is saved as an image, which is not editable in Microsoft office. In contrast to the program mentioned above, this Microsoft PDF document writer can even edit the text present in the scanned documents using the OCR feature. In the case of images, you can crop the images, resize them, rotate them, or extract them from the PDF file. So, if you are adding new text in the PDF file, you can match the style of the text with the already present text in the PDF file. OpenOfficeExportToPDF('file:///C:/SourceFile.odt', 'file:///C:/TargetFile.In the case of text, you can change the style, fonts, and even the alignment of the text.

Procedure TForm1.Button1Click(Sender: TObject) StarDocument.StoreToURL(ATargetFileURL, FilterParams) StarDocument := StarDesktop.LoadComponentFromURL(ASourceFileURL, '_blank', 0, FilterParams) ĮxportParams := VarArra圜reate(, varVariant) ĮxportParams := CreateProperty('Magnification', 2) ĮxportParams := CreateProperty('EncryptFile', True) ĮxportParams := CreateProperty('DocumentOpenPassword', AnsiString('StackOverflow')) ĮxportParams := CreateProperty('HideViewerWindowControls', True) ĮxportObject := StarOffice.Bridge_GetValueObject ĮxportObject.Set('.PropertyValue', ExportParams) įilterParams := CreateProperty('FilterName', AnsiString('writer_pdf_Export')) įilterParams := CreateProperty('FilterData', ExportObject) StarDesktop := StarOffice.CreateInstance('.Desktop') įilterParams := VarArra圜reate(, varVariant) įilterParams := CreateProperty('Hidden', True) Result := StarOffice.Bridge_GetStruct('.PropertyValue') Procedure OpenOfficeExportToPDF(const ASourceFileURL: string const ATargetFileURL: string) įunction CreateProperty(const AName: AnsiString AValue: Variant): Variant

Note that the following code is again without error handling. The export is done in hidden mode when the OpenOffice window isn't shown at conversion.

Here is the tutorial describing all features used for configuration of the generated document.įor the following example I chose fit to width magnification, password protection and hidden window controls.
