Hello,

When I write to the pdf with the example FormTest. I am able to read the text 
back by using ParserTest.
The problem is acrobat reader or writer not shows the text field, it only shows 
the text field when I click on it.

I try to set (on/off) NeedAppearance. It doesn't work.
if (pDoc->GetAcroForm()->GetNeedAppearances())
{
     qDebug() << " Need appearance";
     pDoc->GetAcroForm()->SetNeedAppearances(false);
}

Do you have any ideal about this issue ?

Regards,
DHle

-----Original Message-----
From: zyx [mailto:[email protected]] 
Sent: Wednesday, August 16, 2017 6:38 AM
To: [email protected]
Subject: Re: [Podofo-users] Podofo writes text to form, text shows behind 
background color

On Tue, 2017-08-15 at 17:08 +0000, Dai-Hanh Le wrote:
> I try to write a text to a pdf form.
> The text hides behind the background; when I click to the field the 
> text show up; when I unclick the background show up.

        Hi,
if I recall correctly, then you should generate/update appearance streams of 
the modified fields too. Those are used to show the content of the field when 
the field is not focused (apart of other usages). The behavior also depends on 
the AcroForm's NeedAppearances flag
(PdfAcroForm::GetNeedAppearances() / SetNeedAppearances()), when it's 'false', 
the appearance streams are generated by the PDF reader.
        Bye,
        zyx

-- 
http://www.litePDF.cz                                 [email protected]

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech 
sites, Slashdot.org! http://sdm.link/slashdot 
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to