WINSOFT components and applications

PDF Library for Android

PDF Library for Android

A powerful library for Delphi and C++Builder that enables seamless creation, processing, and rendering of PDF documents.
Download PDF Library for Android 3.5 trial version
Download demo example
Order PDF Library for Android $80 USD (license for one developer)
Order PDF Library for Android multi-license $240 USD (license for all developers in company)
Order PDF Library for Android year upgrades $40 USD (registered users only)
Order PDF Library for Android year upgrades multi-license $120 USD (registered multi-license users only)
Order Winsoft Component Package

FAQ

Why does the exception "java.io.FileNotFoundException: open failed: EACCESS (Permission denied)" occur when opening an existing PDF file?

This exception typically indicates that your application does not have the required permission to access external storage.
uses System.Permissions, Androidapi.JNI.Os, ...
...
  PermissionsService.RequestPermissions(
    [JStringToString(TJManifest_permission.JavaClass.READ_EXTERNAL_STORAGE)],
    procedure(const APermissions: TArray; const AGrantResults: TArray)
    var PermissionGranted: Boolean;
    begin
      PermissionGranted := (Length(AGrantResults) = 1) and
                           (AGrantResults[0] = TPermissionStatus.Granted);
      ...
    end);
...
							

How can I specify the page size when creating a new PDF page?

You can set the desired page size by passing a predefined constant from the TPdfPageSize enumeration when adding a new page:
Page := Document.AddPage(TPdfPageSize.A4);
							

How can I change the page size of an existing PDF page?

You can modify the page size by setting the MediaBox property to a predefined value from the TPdfPageSize enumeration:
Page.MediaBox := TPdfPageSize.A4;
							

How can I retrieve text from a PDF document?

You can extract the text content of a PDF document using the Text property of the Document object:
Text := Document.Text;
							

What files should be deployed to the Android device?

All files located in the Library\assets folder must be deployed to the Android device. When deploying, ensure that the Remote Path is correctly set to the corresponding assets\... location to match the folder structure expected by the application.

Useful Links

Icon Use the PdfBox-Android Library in Your Delphi/C++Builder FireMonkey Applications

Icon PdfBox-Android