[xep-support] Problems configuring XEPWin and adding Fonts

From: Alexander Reith <Alexander.Reith@dpv-elektronik.de>
Date: Mon Nov 11 2013 - 04:17:19 PST

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!

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Mon Nov 11 04:36:37 2013

This archive was generated by hypermail 2.1.8 : Mon Nov 11 2013 - 04:36:49 PST