Line Breaks in PDF (generated from Word document)

Hi,

I am using ASPOSE PDF component to convert PDF files from MS Word based templates. In the Word document I have few sections which are removed from the resulting PDF based on user input on the ASP.NET interface. I am able to do that by using the intermediate XML.

The problem that I am facing is as follows: The sections that I need to remove are on Page 1 of the Word document. When I remove a section which comprises of some static text as well as some controls (Form Fields like textbox, checkbox etc) in the resulting PDF, the contents below the removed section on Page 2 move up the document. I want that when the section is removed the other content should not move at all. Please refer to the attachment for a sample file that we use to convert to PDF (sorry can’t attach the actual template so attaching a sample which replicates the actual word doc)

One option is I remove the Segments with Form fields and replace them with empty sections. I need to know if there is an option to keep the Page1 static and still remove the content without any content/data movement.

Thanks,
Vaibhav Modak

Hello Vaibhav,

Thanks for considering Aspose.

I've tested the scenario and I'm unable to reproduce the problem. During my test I've removed the text segments over page 1 from XML document and in the resultant PDF, the contents of the second page are not moved to the first page.

The intermediate XML and resultant PDF that I've generated are in attachment. Please take a look. I've tested the issue using Aspose.Words 6.6.0.0 and Aspose.Pdf 4.1.0.0

In case it does not resolve your problem, or I've not properly understood your requirements, please share some more details on how we can replicate the issue at our end.