Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API: "Field" struct in "form" package does not export fields preventing the access to them #675

Closed
fbueckle opened this issue Aug 21, 2023 · 3 comments
Assignees

Comments

@fbueckle
Copy link

fbueckle commented Aug 21, 2023

Not sure whether this counts as bug or feature request but I believe it is the former due to the way two api functions interact with each other.

General Information

Please ensure the following:

  • Used version: 1d309dcd12aa2208402cc103625f56160f743453 aka v0.5.0
  • Used OS: Ubuntu 23.04
  • Used GoLang Version: 1.21.0.

Bug/Problem Summary

The Field struct used in Forms is not exporting its fields which prevents other projects to access those fields. This leads to problems when trying to "lock" form fields. Scenario goes as follows:

  1. Obtain all form fields using the new function FormFields from the api packages
  2. Try to extract the IDs of the struct in order to use them as input for LockFormFields which takes a string array as input
  3. No field from the Field struct can be accessed due to the fields not being exported

If there is any error on my behalf, please let me know.

@fbueckle fbueckle changed the title API: "Field" struct in "form" package does not export its fields preventing the access to them API: "Field" struct in "form" package does not export fields preventing the access to them Aug 21, 2023
@hhrutter
Copy link
Collaborator

Fixed with latest commit!

@fbueckle
Copy link
Author

Thanks for the quick fix! Is there any chance we could get a hotfix release for this?
Whenever I try to to include a specific commit version I keep running into the error:

go: github.com/pdfcpu/pdfcpu@91b6234dd34dee71c18960c014bfefc0050ac33a: github.com/pdfcpu/pdfcpu@v0.5.1-0.20230821073716-91b6234dd34d: verifying module: github.com/pdfcpu/pdfcpu@v0.5.1-0.20230821073716-91b6234dd34d: reading https://sum.golang.org/lookup/github.com/pdfcpu/pdfcpu@v0.5.1-0.20230821073716-91b6234dd34d: 404 Not Found
        server response: not found

Applying the workaround from #567 (comment) is not possible due to me being restricted in the possibility to alter our used CI Pipelines

@hhrutter
Copy link
Collaborator

hhrutter commented Aug 21, 2023

Please pull, update pdfcpu's dependencies and go install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants