Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Font size for the text field in saved static PDF #53

Open
kevin228228 opened this issue Apr 7, 2017 · 1 comment
Open

Font size for the text field in saved static PDF #53

kevin228228 opened this issue Apr 7, 2017 · 1 comment

Comments

@kevin228228
Copy link

I'm evaluating ILPDFKit with its sample app. I added a form which contains text fields with two different font sizes: 34 for the "label_title" field, while 16 for the others.

However, after filling out the form with the following code, and save it as static PDF, the resulting font sizes look different from the original ones.

Is there any way to make it follows the original font sizes? Alternatively, is there any way to set the font size problematically when filling out the form?

My form filling code:
`

    let document = ILPDFDocument(resource:"sample_form")

    document.forms.setValue("SAMPLE FORM", forFormWithName: "label_title")

    document.forms.setValue("From: ", forFormWithName: "label_from")

    document.forms.setValue("John Doe", forFormWithName: "field_from")

    document.forms.setValue("Subject: ", forFormWithName: "label_subject")

    document.forms.setValue("My Subject...", forFormWithName: "field_subject")

    document.forms.setValue("Message: ", forFormWithName: "label_body")

    document.forms.setValue("My Body...", forFormWithName: "field_body")

`
sample_form.pdf
Expected_Filled_Form.pdf
screen shot of the pdf created by ilpdfkit

Thanks!

@derekblair
Copy link
Owner

Investigating, thanks.

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

No branches or pull requests

2 participants