Hi Team,
We are filling pdf acroforms using aspose pdf. While filling we are changing Color for that field also. For that we are using code like below
DefaultAppearance defaultapp = new DefaultAppearance();
Color color = new Color({R}, {G}, {B},{A});
defaultapp.setTextColor(color);
textField.setDefaultAppearance(defaultapp);
This code is changing the color but it is not retaining original Font Size . Is there any way we can get original Font Size of pdf formfield.
Please share your suggestions
Hi Team,
We are filling pdf acroforms using aspose pdf. While filling we are changing Color of that filling value also. For that we are using code like below
DefaultAppearance defaultapp = new DefaultAppearance();
Color color = new Color({R}, {G}, {B},{A});
defaultapp.setTextColor(color);
textField.setDefaultAppearance(defaultapp);
This code is changing the color but it is not retaining original Font Size . Is there any way we can get original Font Size of pdf formfield.
Please share your suggestions
Regards,
Ashokkumar M
@ashok.mahendran
Can you please share a sample PDF document using which we can test your code snippet and try to reproduce the same issue in our environment? We will share our feedback accordingly.
Hi Team,
Attached java code and sample pdf which used for testing.
Could you please share snippet how to get Font information for particular field.
aspose.zip (52.7 KB)
@ashok.mahendran
We have replicated the similar issue in our environment while using Aspose.PDF for Java 21.11. We have noticed that a new Font i.e. Time New Roman was being embedded in the PDF after saving by the API. Therefore, we need to further investigate this case. For the purpose, an issue as PDFJAVA-41154 has been logged in our issue tracking system. We will further look into its details and keep you posted with the status of its correction. Please be patient and spare us some time.
We are sorry for the inconvenience.
Is there any timeline for this fix @asad.ali
@ashok.mahendran
The issue has just been logged in our issue tracking system and it is pending for analysis at the moment. Furthermore, issues are resolved on a first come first serve basis in free support model. We are afraid that we cannot share any timeline for the fix. However, as soon as ticket is investigated, we will share updates with you in this regard. Please be patient and spare us some time.
We are sorry for the inconvenience.
Hi @asad.ali,
We should commit date to customer based on your timeline only. If you could provide tentative timeline that will help us
This is blocker for us to implement one of the feature
@ashok.mahendran
Please note that the issue was recently logged in our issue management system under free support model. It will be investigated and resolved on a first come first serve basis and we are afraid that we cannot share some reliable ETA before the issue is fully analyzed. However, we have recorded your concerns and will surely inform you as soon as we have some definite updates regarding issue investigation and fix ETA. Please spare us some time.
We are sorry for the inconvenience.
The issues you have found earlier (filed as PDFJAVA-41154) have been fixed in Aspose.PDF for Java 22.4.