PDF does not contain fillable fields. for external storage

Created on 15 February 2023, over 1 year ago
Updated 2 March 2023, over 1 year ago

Problem/Motivation

I am using drupal version 9.5.2, fillpdf version 5.0, PHP version 8.1 and using pdftk: java 3.2.2.
When I choose public template storage in ADVANCED STORAGE SETTINGS it works fine, but when I choose Azure Blob Storage (external storage) and upload the same template it gives PDF does not contain fillable fields..
it is confirmed the template is uploaded to the server and has permission.

I uploaded some screenshots as well.

Steps to reproduce

Choose an external server for template storage(I am using Azure Blob Storage) in the ADVANCED STORAGE SETTINGS.
uploaded template file.

πŸ› Bug report
Status

Active

Version

5.1

Component

Code

Created by

πŸ‡΅πŸ‡°Pakistan Allahnoor Turab

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @Allahnoor Turab
  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    If you cannot access the file from the command line, pdftk will not be able to see it. The error message could probably be improved to indicate that it cannot see the file at all instead of being able to see the file but it has no fields.

  • πŸ‡΅πŸ‡°Pakistan Allahnoor Turab

    Templates can be accessed from the template listing page with external URL.
    Can you show up the steps or commands to access it from command line?
    To confirm is this module use an absolute URL or a relative for the template to access?

  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    That is the problem. pdftk needs to be able to access the PDF from the file system. If it is remote, it is not on the file system. To make it work, the PDF would need to be copied to a temporary location on the file system. That would be a feature request.

    Perhaps FillPDF should be able to detect that a storage configuration does not store files where they can be accessed from the file system and prevent those from being used.

  • πŸ‡΅πŸ‡°Pakistan Allahnoor Turab

    Can we use another service(FillPDF LocalServer ) to avoid this problem ?

  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦

    There is a good chance that that would fix it.

  • πŸ‡¦πŸ‡«Afghanistan ab.shakir

    I've configured the FillPDF LocalServer and is working really well for the template files served from Azure Blob Storage.

Production build 0.69.0 2024