Free Support Forum - aspose.com

TextStamp object issues

We was trying to implement the new TextStamp object and found the following issues.

1. Not able to assign CMYK color object to the TextState.ForgroundColor property.
2. There is no underline property on the TextStamp or on TextState.
3. FormattedText accepts Aspose.Pdf.Color but the Aspose.Pdf.Color has been changed from CMYK to ARGB/RGB, so not able to use the TextStamp created from a FormattedText.

We want to have the ForgroundColor and BackgroundColor in CMYK (for print purpose) instead of ARGB.





Hi Harshal,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the details.

I have created feature enhancement requests in our issue tracking system for our development team to further look into your requirements. Following are the details.

PDFNEWNET-34379: Support for CMYK color for TextState.ForegroundColor Property

PDFNEWNET-34380: Support for underline property in TextState

PDFNEWNET-34381: Support for CMYK color for TextState.BackgroundColor Property

We will keep you posted regarding any updates as per the above requirements.

Sorry for the inconvenience,

When can we expect these enhancements? We are in the middle of implementing these features.

Hello,

I would also just want to clarify the main functionality we are looking for so we can be sure the requests are filed for the same above :-

1) We want to assign a CMYK color value to the Text which goes inside TextStamp object. The reason for it being printing uses CMYK.

2) We want to have underline property for the text inside the Text stamp.

It’s a very urgent issue for us and I humbly request to resolve these things soon.

Thanks,
Harshal




Hi Harshal,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for the details and clarification about your requirements. We will consider them during the feature enhancements. However, regarding the priority of development, as we have just logged the feature enhancement, we cannot share an ETA regarding the implementation of the feature. Our development team will require sometime to further analysis of the requirements.

Also, if you are interested in raising the priority of your required features, you may consider Priority Support or Enterprise Support to get a higher priority for fix / resolution. Please check the following link to check the details regarding different support options.

http://www.aspose.com/corporate/services/default.aspx

Thank You & Best Regards,

Hi Harshal,


Thanks for your patience.

I have further discussed the status of these issues with development team and as per our current estimates, we plan to get these issues resolved by February-2013. However if you subscribe to Enterprise or Priority support model, the precedence of these issues will be increased and we may plan to fix them in December-2012 release.

harshaljoshi:
1. Not able to assign CMYK color object to the TextState.ForgroundColor property.

Hi Harshal,

Thanks for your patience.

We are plased to share that the required shared earlier has been implemneted. In order to set ForeGround color with CMYK, please try using the following code snippet.

[C#]

TextStamp stamp = new
TextStamp(“Test”);<o:p></o:p>

stamp.TextState.ForegroundColor = Aspose.Pdf.Color.FromCmyk(0.1, 0.2, 0.3, 0.5);

stamp.TextState.BackgroundColor = Aspose.Pdf.Color.FromCmyk(0.3, 0.2, 0.1, 0.3); //save
updated document


Furthermore, please note that in order to support above requirement, we have made some changes in our product.

Property type changed:
  • TextState.BackgroundColor
  • TextFragmentState.BackgroundColor
  • TextState.ForegroundColor
  • TextFragmentState.ForegroundColor
System.Drawing.Color has been changed to Aspose.Pdf.Color

code migration scenarios:

previously valid code
TextState.BackgroundColor =
System.Drawing.Color.Brown

valid code from 7.8:
TextState.BackgroundColor = Aspose.Pdf.Color.FromRgb(

System.Drawing.Color.Brown);

The issues you have found earlier (filed as PDFNEWNET-34379;PDFNEWNET-34381) have been fixed in Aspose.Pdf for .NET 7.8.0update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

The issues you have found earlier (filed as PDFNEWNET-34380) have been fixed in Aspose.Pdf for .NET 7.9.0.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.