Hi, I have a problem converting .docx documents to .pdf. going through aspose creates the document with a ghost space at the bottom. any ideas.
private void AsposeDocument(string Ruta, string NombreDocumentoServidor, string NRadicadoSalida)
{
try
{
string Archivo = Path.Combine(Ruta, NombreDocumentoServidor);
License objLicencia = ObtenerLicencia();
Document AsposeDoc = new Document(Archivo);
string FechaActual = DateTime.Today.ToString(“d {0}MMMM {0}yyyy”);
FechaActual = string.Format(FechaActual, “de “);
AsposeDoc.Range.Replace(“CORR_FECHA_RAD”, FechaActual, new FindReplaceOptions(FindReplaceDirection.Forward));
AsposeDoc.Range.Replace(“Radicado: CORR_NUM_RAD”, string.Format(“Radicado: {0}”, NRadicadoSalida), new FindReplaceOptions(FindReplaceDirection.Forward));
AsposeDoc.Range.Replace(“CORR_NUM_RAD”, string.Format(”{0}{1}{0}”,"*",NRadicadoSalida), new FindReplaceOptions(FindReplaceDirection.Forward));
string ArchivoPdf = Path.Combine(Ruta, RenombrarDocumento(NombreDocumentoServidor, “pdf”, false));
AsposeDoc.Save(ArchivoPdf, SaveFormat.Pdf);
}
catch (FaultException ex)
{ throw ex; }
catch (Exception ex)
{ throw new FaultException(new UGPPExcepcion(Assembly.GetCallingAssembly().GetName().Name,
GetType().Name, MethodBase.GetCurrentMethod().Name, ex.Message, false));
}
}