[xep-support] Problems configuring XEPWin and adding Fonts
Alexander Reith
Alexander.Reith at dpv-elektronik.de
Mon Nov 11 04:17:19 PST 2013
Hello
I've got some problems to get XepWin to work...
I want to perform the whole configuration in .NET, but this is not
working. Configuration is always loaded from xep.xml
My Code:
Logger logger = new Logger();
Configuration config = new Configuration();
config.SetParam("VALIDATE", "false");
config.SetParam("DISCARD_IF_NOT_VALID", "false");
IFormatter formatter = config.CreateFormatter(logger);
FileStream sourceStream = null;
FileStream outputStream = null;
try
{
sourceStream = new FileStream(sourcePath,
FileMode.Open);
outputStream = new FileStream(outputPath,
FileMode.Create);
return formatter.Format(sourceStream,
MakeSystemID(sourcePath), "application/pdf", outputStream);
}
finally
{
if (sourceStream != null)
sourceStream.Close();
if (outputStream != null)
outputStream.Close();
}
Also I want to set the image base path and add some fonts
programmatically...
Best regards
Ale
!DSPAM:87,5280cad69857138315627!
More information about the Xep-support
mailing list