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

[BUG] field partial name (T) not specified #425

Open
tangximing opened this issue Nov 18, 2020 · 1 comment
Open

[BUG] field partial name (T) not specified #425

tangximing opened this issue Nov 18, 2020 · 1 comment

Comments

@tangximing
Copy link

Description

I'm trying to read form from pdf with code below, but ends up with error like this "field partial name (T) not specified"

ReadForm(arg *ReadFormArg) (resp string, err error) {
	fd, err := fjson.LoadFromPDFFile(arg.Filename)
	if err != nil {
		return
	}
	if fd == nil {
		return
	}
	resp, err = fd.JSON()
	if err != nil {
		return
	}
	return
}

Expected Behavior

parse the pdf successfully and return form json string

Attachments

there are two form fields in pdf attachment, and the second one is just copied from the first one. if I replace the second one with created form field not copied, it's ok.

test2.pdf

@tangximing tangximing changed the title field partial name (T) not specified [BUG] field partial name (T) not specified Jan 19, 2021
@gunnsth
Copy link
Contributor

gunnsth commented Dec 6, 2021

@tangximing We cannot reproduce this. Can you test this again with newest unipdf and provide a self-contained example with full code and files so that it can be reproduced.

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

No branches or pull requests

2 participants