I am attaching file using builder.insertdocument() function in dot net using aspose words, when pdf file get generated, it shows space between number and starting text. How can we remove that extra space.
It displayed in generated pdf like below
Fill the packaging system to its nominal capacity with purified water and close it, if
possible,
but it should be like
Fill the packaging system to its nominal capacity with purified water and close it, if
possible,
I am attaching dummy project and files.Dummy Project 17122020.zip (7.4 MB)
Actually I am using leftindent / rightindent for another issue I had faced. That issue has been described in below link.
For above solution, I am attaching my document in between my contents. In attached project don’t have that scenario. But in my actual file it will be like some content then attached word file and again some content.
Like worddoc will be my main document where I have some table and other info to get display. Then using secdoc I read the attached word file and again that attachment inserted into main worddoc.
My actual problem is that in main word doc I had set up a page with margin like left and right margin as 0.5.
So if any word document which I need to attached using builder.insertdocument() function, if that word file having margin less than 0.5 or less than 0 then in generated pdf file, text getting cutt off from left or right side. To fix this issue using leftindent and rightindent property as per the solution given in issue which I linked here for reference. But while testing with this solution found that when having data with numbers it was displayed some extra space.
As per your solution if I clone the secdoc into main worddoc then other contents of worddoc will get overlapped with secdoc content.
Can you please on this? My main aim is whatever file user attached it should display proper in generated PDF file with other contents as well.
I have tried with above code. But its not working as expected.
I am attaching one demo project where I have two different types of attachments. In the same folder attached generated pdf files too.
I want whatever I have attached using builder.insertdocument() function, that should get formatted as per other content as per required data in pdf file. And all the data should be in same align without any formatting issue. Word attachment data should be display same as attached file. And it should be align with my main document content.
Can you please help on this? Your help is really appreciated.
We have logged this problem in our issue tracking system. Your ticket number is WORDSNET-21585. We will further look into the details of this problem and will keep you updated on the status of the linked issue. We apologize for any inconvenience.