You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pdfbox.apache.org by "Maruan Sahyoun (JIRA)" <ji...@apache.org> on 2015/09/21 18:30:04 UTC
[jira] [Comment Edited] (PDFBOX-2980) PDField.getKids doesn't
return PDFields since 1.8.9
[ https://issues.apache.org/jira/browse/PDFBOX-2980?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14900730#comment-14900730 ]
Maruan Sahyoun edited comment on PDFBOX-2980 at 9/21/15 4:29 PM:
-----------------------------------------------------------------
{quote}
It doesn't look like PDFBox is using Semantic Versioning, since it changed an API in a dot release...
{quote}
it does but the change in behavior happened because of a bug fix in another place how non terminal fields (fields which have kids) are handled. -We can look at reinstating the old behavior-. It would be helpful to have a sample form of yours to look at the use case.
was (Author: msahyoun):
{quote}
It doesn't look like PDFBox is using Semantic Versioning, since it changed an API in a dot release...
{quote}
it does but the change in behavior happened because of a bug fix in another place how non terminal fields (fields which have kids) are handled. We can look at reinstating the old behavior. It would be helpful to have a sample form of yours to look at the use case.
> PDField.getKids doesn't return PDFields since 1.8.9
> ---------------------------------------------------
>
> Key: PDFBOX-2980
> URL: https://issues.apache.org/jira/browse/PDFBOX-2980
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 1.8.9, 1.8.10
> Environment: $ cat /proc/version
> Linux version 3.19.0-28-generic (buildd@lgw01-03) (gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13) ) #30-Ubuntu SMP Mon Aug 31 15:52:51 UTC 2015
> $ java -version
> java version "1.7.0_79"
> OpenJDK Runtime Environment (IcedTea 2.5.6) (7u79-2.5.6-0ubuntu1.15.04.1)
> OpenJDK 64-Bit Server VM (build 24.79-b02, mixed mode)
> Reporter: Johannes Barre
> Attachments: Field.java
>
>
> For my current task I need to access several form fields with the same name. I found [PDFBOX-2148], which seemed to be exactly what I need. However, when I tried the code and pdf of that bug with Pdfbox 1.8.10, I got no output, because {{getKids}} returned {{PDAnnotationWidget}} s instead of {{PDField}} s, even when I tried the provided code. So I tried with 1.8.5 (reported version) and I got this output:
> {noformat}
> Button2.null
> Button2.null
> Button2.null
> Button2.null
> {noformat}
> With 1.8.8 I've got:
> {noformat}
> Button2
> Button2
> Button2
> Button2
> {noformat}
> And with 1.8.9 and 1.8.10 I got no output at all.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org
For additional commands, e-mail: dev-help@pdfbox.apache.org