Skip to content

Feature request: Need APIs to access Acroform resources (Acroform->DR) #106

Description

@panneer

Hey @corymickelson

I first thank you for your great work (nopodofo).

I need a feature to access the acroform defined resources (Acroform->DR). Could you tell me whether you have a plan for this feature in your road map and when I could expect it?

I could not share the PDF sample for privacy reasons.

My actual use case
PDF is defined

  1. With a Acroform dictionary as shown below

/CO: Array
/DA: /QuickPDFF6af2e376 0 Tf 0 0 0 rg
/DR: Dictionary
/Encoding: Dictionary
/Font: Dictionary
/Helv: 88 0 R
/QuickPDFF6af2e376: 158 0 R
/ZaDb: 89 0 R

  1. With a form field as shown below

/DA: /QuickPDFF6af2e376 11 Tf 0 0 0 rg
/F: 4
/FT: /Tx
/Ff: 8388608
/P: 95 0 R
/Q: 0
/Rect: Array
/Subtype: /Widget
/T: F4260
/TU:
/Type: /Annot
/V:
I would like to add value to this form field (with appropriate appearance dictionary)
I followed this reference (https://corymickelson.github.io/NoPoDoFo/documentation/cookbook/ap.html) for adding appearance stream

When adding the appearance stream for field, I don't want to create a new font for field value.
Instead, I wish to get 'QuickPDFF6af2e376' font from Acroform->DR. Like the font accessing APIs defined in Document object

getFont(name: string): Font
listFonts(): { id: string, name: string }[]

I am not sure whether nopodofo already has functionality to achieve my requirement.
Please give me some advise to meet my requirement

Thanks a lot in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions