Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Mon Jan 11, 2016 7:09 pm

hi
when i convert a xps document to pdf, using PdfDocument.LoadFromXPS(file), then if the xps contains text with right-to-left flow direction, the output to pdf document appears reversed.
example:
private void test2()
{
string xpsPath = "d:\\tmpxps.xps";
UIElement vis = new TextBlock() { Text = "אבג דהו", FlowDirection = FlowDirection.RightToLeft };
System.Windows.Xps.Packaging.XpsDocument xpsd = new System.Windows.Xps.Packaging.XpsDocument(xpsPath, FileAccess.ReadWrite);
var xw = System.Windows.Xps.Packaging.XpsDocument.CreateXpsDocumentWriter(xpsd);
xw.Write(vis);
xpsd.Close();

PdfDocument docp = new PdfDocument();
docp.LoadFromXPS("d:\\tmpxps.xps");
string pdfPath = "d:\\tmppdf.pdf";
docp.SaveToFile(pdfPath);
docp.Close();
}
(inside the xpsDocument package, the text "אבג דהו" found within Glyphs with BidiLevel=1, the xpsToPdf converer does not honor this property).
thanks for yours treatment

[email protected]
 
Posts: 1
Joined: Mon Jan 11, 2016 4:51 pm

Tue Jan 12, 2016 3:37 am

Hi,

Thanks for your posting and using our Spire.PDF.
Sorry for the inconvenience that the issue brought. I have forwarded your issue to our dev team. We will keep you updated.
Welcome to write to us again for further problems.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Mon Feb 01, 2016 8:50 am

Hi,

Thanks for waiting.
Your issue has been resolved. Welcome to download and test Spire.PDF Pack(Hot Fix) Version:3.6.135.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Thu Feb 04, 2016 8:25 am

Hi,

Did new version resolve your issue?
Thanks for your feedback.

Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 3043
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.PDF