We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Can I create pdf files in windows phone using Syncfusion Essential PDF?

Hi,

I am developing app for windows phone. In that I want to create pdf file dynamically. 
Can I use your Essential PDF SDK to create pdf.
If Yes then can you please send me documentation beacuse I did not find docs file anywhere in your site. 
and If no, Then please suggest me about your some other product for creating pdf.
I am looking forward to use your product.


Thanks
Amit




10 Replies

KK Karthik Krishnaraj Syncfusion Team June 22, 2015 09:07 AM UTC

Hi Amit Sharma,
Thank you for using syncfusion products,
Yes it is possible to “Create Pdf file in windows phone using Essential Pdf”, I have attached a simple sample and online documentation link in WinRT (which is same as Windows Phone) for your reference in the below link, can you please check with this and let us know if these helps.
Sample Link:
https://www.syncfusion.com/downloads/support/directtrac/133647/ze/CreatePdfWP-793549788

Online Documentation Link:
https://help.syncfusion.com/winrt
Thanks,
Karthik.


FE fernando July 19, 2016 02:48 PM UTC

Hi !!
A question?

How I can convert a xml file to a pdf, I am using (DiagramBuiller ) wpf
the Xml file is created by (DiagramBuiller of syncfusion)



Can you help me? 
Please 

Attachment: Xml_file_created_by_DiagramBuiller_1295c410.rar


CM Chinnu Muniyappan Syncfusion Team July 20, 2016 05:50 AM UTC

Hi Fernando, 

Thank you for your update. 

Currently we do not have support for converting XML file to PDF in windows phone platform. But we do support to convert the XML file to PDF in windows forms platform. Please find the below link for more details. 

Regards, 
Chinnu 



FE fernando July 20, 2016 02:44 PM UTC

Hi !! 
do you example  does not work for WPF (Windows Presentation Foundation)

Again?

How I can convert a xml file to a pdf, I am using DiagramBuiler  of wpf (Windows Presentation Foundation)
the Xml file is created by (DiagramBuiler of syncfusion)

link of DiagramBuiler of syncfusion
https://www.syncfusion.com/products/wpf/diagram


Can you help me? 
Please 

Attachment: Xml_file_created_by_DiagramBuiler_1295c410_44cca509.rar


FE fernando July 20, 2016 05:06 PM UTC

how I can collocate a button that Exporting and Printing ?
in the platform of diagramBuiler, I am Using Wpf (Windows Presentation Foundation) 

link of diagrambuiler 
https://www.syncfusion.com/products/wpf/diagram




Attachment: example_of_export_a98e7fed.rar


RA Ranjitha Amirthalingam Syncfusion Team July 26, 2016 01:50 PM UTC

Hi Fernando, 
 
Following is the same response updated in the forum #115983. 
 
We have provided the code example to enable Printing option in Diagram Builder sample. Please refer to the code example as below. 
 
public void OnPrintCommand(object param) 
{ 
    ExportSettings settings = new ExportSettings() 
     { 
        ImageStretch = Stretch.Fill, 
        ExportMode = ExportMode.PageSettings 
     }; 
     (SelectedDiagram.Info as IGraph).ExportSettings = settings; 
     (SelectedDiagram.Info as IGraph).PrintingService.ShowDialog = true; 
     (SelectedDiagram.Info as IGraph).PrintingService.Print(); 
}  
 
Also, provided Xaml code to bind the Print command in a Button .Please refer to the code as below. 
 
<syncfusion:BackStageCommandButton Header="Print" Command="{Binding DataContext.Print,Mode=TwoWay,ElementName=ribbon}" > </syncfusion:BackStageCommandButton>  
 
 
Note: 
Currently, we are checking “how to export Xml file as Pdf”. We will update the status on 29th July, 2016. 
 
 
 
Regards, 
Ranjitha A. 



KR Keerthivasan Ramamoorthy Syncfusion Team July 28, 2016 08:55 AM UTC

Hi Fernando,  
  
We have provided code example to enable Export option in Diagram Builder sample. Please refer to the below code example. The below code is used to export the Diagramming object (Nodes and Connectors) into PDF. 
 
Add the below C# code in DiagramBuilderVM.cs file and Syncfusion.Pdf.Base.dll as a reference. 
C# code example: 
public void OnExportCommand(object param) 
{ 
Microsoft.Win32.SaveFileDialog saveFileDialog = new Microsoft.Win32.SaveFileDialog(); 
saveFileDialog.Filter = "PDF File|*.pdf"; 
saveFileDialog.Title = "Save to a PDF file"; 
saveFileDialog.FileName = "Diagram"; 
saveFileDialog.ShowDialog(); 
if (!string.IsNullOrEmpty(saveFileDialog.FileName)) 
{ 
SaveFileDialog m_SaveFileDialog = new SaveFileDialog(); 
m_SaveFileDialog = new SaveFileDialog(); 
m_SaveFileDialog.Filter = "XPS File(*.xps)|*.xps"; 
m_SaveFileDialog.FileName = "DiagramExport"; 
string name = m_SaveFileDialog.FileName; 
ExportSettings es = new ExportSettings(); 
es.FileName = name; 
es.IsSaveToXps = true; 
(SelectedDiagram.Info as IGraph).ExportSettings = es; 
(SelectedDiagram.Info as IGraphInfo).Export(); 
Syncfusion.XPS.XPSToPdfConverter converter1 = new Syncfusion.XPS.XPSToPdfConverter(); 
//Convert XPS document into PDF document 
PdfDocument document = converter1.Convert(name); 
//save and close the document 
document.Save(saveFileDialog.FileName); 
document.Close(true); 
} 
} 
Also, provided XAML code to bind the Export command in a Button. Please refer to the below code, 
<syncfusion:BackStageCommandButton Header="Export" Command="{Binding DataContext.Export,Mode=TwoWay,ElementName=ribbon}" ></syncfusion:BackStageCommandButton> 
 
Note:  
For more information, we have provided a video. Please refer to the video link as below. 
Video link:160753_Video

 
  
Regards,  
Keerthivasan R. 
 



FE fernando replied to Keerthivasan Ramamoorthy July 28, 2016 05:36 PM UTC

Hi Fernando,  
  
We have provided code example to enable Export option in Diagram Builder sample. Please refer to the below code example. The below code is used to export the Diagramming object (Nodes and Connectors) into PDF. 
 
Add the below C# code in DiagramBuilderVM.cs file and Syncfusion.Pdf.Base.dll as a reference. 
C# code example: 
public void OnExportCommand(object param) 
{ 
Microsoft.Win32.SaveFileDialog saveFileDialog = new Microsoft.Win32.SaveFileDialog(); 
saveFileDialog.Filter = "PDF File|*.pdf"; 
saveFileDialog.Title = "Save to a PDF file"; 
saveFileDialog.FileName = "Diagram"; 
saveFileDialog.ShowDialog(); 
if (!string.IsNullOrEmpty(saveFileDialog.FileName)) 
{ 
SaveFileDialog m_SaveFileDialog = new SaveFileDialog(); 
m_SaveFileDialog = new SaveFileDialog(); 
m_SaveFileDialog.Filter = "XPS File(*.xps)|*.xps"; 
m_SaveFileDialog.FileName = "DiagramExport"; 
string name = m_SaveFileDialog.FileName; 
ExportSettings es = new ExportSettings(); 
es.FileName = name; 
es.IsSaveToXps = true; 
(SelectedDiagram.Info as IGraph).ExportSettings = es; 
(SelectedDiagram.Info as IGraphInfo).Export(); 
Syncfusion.XPS.XPSToPdfConverter converter1 = new Syncfusion.XPS.XPSToPdfConverter(); 
//Convert XPS document into PDF document 
PdfDocument document = converter1.Convert(name); 
//save and close the document 
document.Save(saveFileDialog.FileName); 
document.Close(true); 
} 
} 
Also, provided XAML code to bind the Export command in a Button. Please refer to the below code, 
<syncfusion:BackStageCommandButton Header="Export" Command="{Binding DataContext.Export,Mode=TwoWay,ElementName=ribbon}" ></syncfusion:BackStageCommandButton> 
 
Note:  
For more information, we have provided a video. Please refer to the video link as below. 
Video link:160753_Video

 
  
Regards,  
Keerthivasan R. 
 


Thank you so much.


KR Keerthivasan Ramamoorthy Syncfusion Team July 29, 2016 03:53 AM UTC

Hi Fernando, 
 
Thanks for the update. 
Please let us know if you need any further assistance. 
 
Regards, 
Keerthivasan R. 



KI Kim February 24, 2018 01:21 PM UTC

Here is your asnwer buddy !!

ZETPDF.com



Loader.
Live Chat Icon For mobile
Up arrow icon