[
https://issues.apache.org/jira/browse/PDFBOX-3673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15848961#comment-15848961
]
Tilman Hausherr edited comment on PDFBOX-3673 at 2/28/17 7:07 PM:
------------------------------------------------------------------
[~msahyoun] Change was done in [ https://svn.apache.org/r1751213 ] in
PDFBOX-3396,
{code}
contentStream = new PDPageContentStream(document, page, AppendMode.APPEND,
true, true);
{code}
was changed to
{code}
contentStream = new PDPageContentStream(document, page, AppendMode.APPEND,
true);
{code}
so the q...Q is no longer done - why?
was (Author: tilman):
Change was done in [ https://svn.apache.org/r1751213 ] in PDFBOX-3396,
{code}
contentStream = new PDPageContentStream(document, page, AppendMode.APPEND,
true, true);
{code}
was changed to
{code}
contentStream = new PDPageContentStream(document, page, AppendMode.APPEND,
true);
{code}
so the q...Q is no longer done.
> Filled form fields appear gray instead of black after flatten
> -------------------------------------------------------------
>
> Key: PDFBOX-3673
> URL: https://issues.apache.org/jira/browse/PDFBOX-3673
> Project: PDFBox
> Issue Type: Bug
> Components: AcroForm
> Affects Versions: 2.0.3, 2.0.4, 2.0.5, 2.1.0
> Reporter: Tilman Ginzel
> Fix For: 2.0.5, 2.1.0
>
> Attachments: input.pdf, output-2.0.2.pdf, output-2.0.3.pdf,
> output-2.0.4.pdf, output-2.0.5.pdf, output-2.1.0.pdf
>
>
> Hi,
> I'm facing the following issue: When filling out an acrobat form and
> flattening it, the text color in the resulting pdf is gray instead of black.
> I attached the [^input.pdf] and several output files for different pdfbox
> versions. Using pdfbox 2.0.2, I get the expected result with black text, as
> from version >=2.0.3 the text is gray.
> Code:
> {code}
> public static void main(String[] args) throws IOException {
> PDDocument doc = PDDocument.load(new File("input.pdf"));
> PDAcroForm form = doc.getDocumentCatalog().getAcroForm();
> form.getField("Text1").setValue("value");
> form.getField("Text2").setValue("value");
> form.getField("Text3").setValue("value");
> form.flatten();
> doc.save("output.pdf");
> }
> {code}
> The default appearance for every text field is set to something like {{/Helv
> 0 Tf 0 g}}. Our current workaround is to replace {{0 g}} with {{0 0 0 rg}}.
> But in my understanding, they both should yield the same result.
> Thanks in advance.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]