(PSD .NET) UpdateText cutting last letter

I’m editing a PDF and when I select the layer to update the text, it updates normally but the last letter appears cut off

b3922ccf-440c-4ebf-aa64-292ae187b614.jpeg (10,7,KB)

I already updated aspose

@iqresultsbrn thank for your report. could you please provide input file, code, OS Parameters and version of Aspose.PSD. Also, please check if the Font that used in the File is Installed on OS.

Versão ASPOSE.PSD.NET > 24.8.0
OS > Windows 11
PROJECT > Windows Forms (.NET Framework)
Font > Tahoma (Regular)
PSD type > Adobe Photoshop Image.25

My CODE:

            using (PsdImage psdImage = (PsdImage)Aspose.PSD.Image.Load("arquivo.psd"))
            {
                foreach (var layer in psdImage.Layers)
                {
                    if (layer is TextLayer)
                    {
                        TextLayer textLayer = layer as TextLayer;

                        if (textLayer.Name == "TEXTO")
                        {
                            textLayer.UpdateText("HELLO WICKO");
                        }
                    }
                }
            }

DATA .PSD

<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 9.1-c002 79.dba3da3, 2023/12/13-05:06:49        ">
   <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
      <rdf:Description rdf:about=""
            xmlns:xmp="http://ns.adobe.com/xap/1.0/"
            xmlns:dc="http://purl.org/dc/elements/1.1/"
            xmlns:photoshop="http://ns.adobe.com/photoshop/1.0/"
            xmlns:xmpMM="http://ns.adobe.com/xap/1.0/mm/"
            xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#"
            xmlns:tiff="http://ns.adobe.com/tiff/1.0/"
            xmlns:exif="http://ns.adobe.com/exif/1.0/">
         <xmp:CreatorTool>Adobe Photoshop 22.3 (Windows)</xmp:CreatorTool>
         <xmp:CreateDate>2024-03-18T08:06:18-03:00</xmp:CreateDate>
         <xmp:ModifyDate>2024-09-16T23:57:00-03:00</xmp:ModifyDate>
         <xmp:MetadataDate>2024-09-16T23:57:00-03:00</xmp:MetadataDate>
         <dc:format>application/vnd.adobe.photoshop</dc:format>
         <photoshop:ColorMode>3</photoshop:ColorMode>
         <photoshop:ICCProfile>Adobe RGB (1998)</photoshop:ICCProfile>
         <photoshop:DocumentAncestors>
            <rdf:Bag>
               <rdf:li>xmp.did:01dc6cc7-6462-4d47-a3ab-4226840579b3</rdf:li>
            </rdf:Bag>
         </photoshop:DocumentAncestors>
         <photoshop:TextLayers>
            <rdf:Bag>
               <rdf:li rdf:parseType="Resource">
                  <photoshop:LayerName>TEXTO</photoshop:LayerName>
                  <photoshop:LayerText>TEXTO</photoshop:LayerText>
               </rdf:li>
            </rdf:Bag>
         </photoshop:TextLayers>
         <xmpMM:InstanceID>xmp.iid:6cda347d-f172-eb40-befa-2cf5e7e171ae</xmpMM:InstanceID>
         <xmpMM:DocumentID>adobe:docid:photoshop:dbbbf2d4-32f4-054c-ab6b-3824cc6314e3</xmpMM:DocumentID>
         <xmpMM:OriginalDocumentID>xmp.did:6d27d66a-3c87-544b-865a-4b28759b2d79</xmpMM:OriginalDocumentID>
         <xmpMM:History>
            <rdf:Seq>
               <rdf:li rdf:parseType="Resource">
                  <stEvt:action>created</stEvt:action>
                  <stEvt:instanceID>xmp.iid:6d27d66a-3c87-544b-865a-4b28759b2d79</stEvt:instanceID>
                  <stEvt:when>2024-03-18T08:06:18-03:00</stEvt:when>
                  <stEvt:softwareAgent>Adobe Photoshop 22.3 (Windows)</stEvt:softwareAgent>
               </rdf:li>
               <rdf:li rdf:parseType="Resource">
                  <stEvt:action>saved</stEvt:action>
                  <stEvt:instanceID>xmp.iid:62da00cc-026b-214e-8ddf-f10ca6a8bbb4</stEvt:instanceID>
                  <stEvt:when>2024-03-18T12:10:37-03:00</stEvt:when>
                  <stEvt:softwareAgent>Adobe Photoshop 22.3 (Windows)</stEvt:softwareAgent>
                  <stEvt:changed>/</stEvt:changed>
               </rdf:li>
               <rdf:li rdf:parseType="Resource">
                  <stEvt:action>saved</stEvt:action>
                  <stEvt:instanceID>xmp.iid:6cda347d-f172-eb40-befa-2cf5e7e171ae</stEvt:instanceID>
                  <stEvt:when>2024-09-16T23:57:00-03:00</stEvt:when>
                  <stEvt:softwareAgent>Adobe Photoshop 25.6 (Windows)</stEvt:softwareAgent>
                  <stEvt:changed>/</stEvt:changed>
               </rdf:li>
            </rdf:Seq>
         </xmpMM:History>
         <tiff:Orientation>1</tiff:Orientation>
         <tiff:XResolution>720000/10000</tiff:XResolution>
         <tiff:YResolution>720000/10000</tiff:YResolution>
         <tiff:ResolutionUnit>2</tiff:ResolutionUnit>
         <exif:ColorSpace>65535</exif:ColorSpace>
         <exif:PixelXDimension>1720</exif:PixelXDimension>
         <exif:PixelYDimension>3058</exif:PixelYDimension>
      </rdf:Description>
   </rdf:RDF>
</x:xmpmeta>

Carrying out some tests, I created a “raw” text layer, the problem is when I place it
…Style.FauxItalic = true;

But this only happens in aspose.
When I do it in Photoshop, everything works fine, without cuts.

I tried to create a new PSD, with leaner settings, but the cutting continued anyway.

@iqresultsbrn could you please attach the psd file to this topic. Only you and moderators are able to download this.

psd.zip (9,1,MB)

attch ok

@iqresultsbrn
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): PSDNET-2183

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as PSDNET-2183) have been fixed in this update. This message was posted using Bugs notification tool by yaroslav.lisovskyi