I found that after changing a TextFragment object’s position, it’s rectangle property does not change automatically. The fragment is extracted from PDF paragraphs.
Aspose version is 22.5.
Code:
var absorber = new ParagraphAbsorber();
absorber.Visit(page);
var fragment = absorber.PageMarkups[0].Sections[0].Paragraphs[0].Lines[0];
fragment.Position.XIndent += 100;
fragment.Position.YIndent += 100;
Then fragment.Rectangle stays the same.
Is it a bug? Or how can I update the Rectangle property?
@thomasender
Could you please attach the following resources here for testing:
- Your input PDF.
- Please create a standalone console application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip and upload them.
AsposeExample.zip (128.2 KB)
example.pdf (418.5 KB)
OK, the pdf file and code zip as above.
@thomasender
We have logged this problem in our issue tracking system as PDFNET-51907. You will be notified via this forum thread once this issue is resolved.
We apologize for your inconvenience.