Remove blank lines

I am converting an XPS file to PDF using Syncfusion.XPS.XPSToPdfConverter.  The original XPS sometimes has extra blank lines of text at the bottom of the document.  It's all contained in 1 page.  How can I delete blank lines (whitespace) with the PDFDocument object return back?


1 Reply

SL Sowmiya Loganathan Syncfusion Team February 24, 2020 12:53 PM UTC

Hi Chris,  
 
Greetings from Syncfusion.    
   
At present we do not have direct support to remove blank space from PDF document. However, as a workaround, we can achieve this by cropping the PDF document. Please find the below KB documentation for more details,    
 
 
Please let us know if you need any further assistance with this.    
  
Regards, 
Sowmiya Loganathan 


Loader.
Up arrow icon