Create pdf file - javafx

What is the best way to generate pdf file over JavaFX gui app?
I used iText library,and works well.Does exist other way to create pdf,or just this library can use to generate pdf files.

Related

How can my rendered RMarkdown/Quarto document with html widgets be linked to a live csv?

Correct me if I'm wrong: The examples online are generally for a static data set. The executed R code reads data into an R data frame and creates the html widgets to plot it. Upon rendering the .Rmd or .qmd, that data set is baked into the html document. If you wanted the document to show some new data, you'd have to run the R code again.
Is there a way to create a rendered .html with html widgets that's linked to a live .csv or SQL database? Perhaps there are some R tools that upon rendering the document, create the html/js instructions to read a .csv or .json file?
Looking to have an .html file that can be shared or hosted that doesn't require an R interpreter.

Is it possible to have a Shiny App output a file?

I am trying to create an easy to use shiny app that uses a R script tool that was made to collect publications by certain authors. This script that was created searches all publications for the specific authors and creates an excel file with a list of their work.
I want to have the Shiny app have an input of a csv file that someone puts in with author's names, then the R script tool that I have would be used to gather all the work from that author, and then the output would be a separate csv file with the list of publications by the author's that was created by the tool.
My question that I have is that I am wondering if this is possible to do, and if so, how would I go about doing it? I don't have extensive knowledge with Shiny, but have worked on creating a csv file input. I am more concerned with being able to link my script and using it to pop out an output of a file as I haven't been able to find any videos or links showing me how to do that.

How to localize pdf with flutter_localizations

I'm using dart pdf to generate PDF files. It works, but now I want to provided the pdf based on the user language.
Within the other parts of the app I use flutter_localizations - but within dart pdf, I can't access the build context of the app.
e.g. AppLocalizations.of(OriginalAppContext).appTitle
How can I do localization?

XSL-FO with 3d objects models

I want to generated a pdf using XSL-FO file. Adobe now has the capability to embed 3d objects inside PDF documents.
http://blogs.adobe.com/tcs/2011/01/framemaker/interactive-3d-models-in-documents.html
Now I just want to creat a PDF file from FOP library which supports to embed 3d object. Is it possible?
Not implemented, yet (2013-11-06). Consider implementing support for it yourself and submitting a patch to the Apache FOP project.

asp.net - Generate Powerpoint file on the fly

I have a client of my web based application who heavily uses the data from our system for powerpoint presentations.
We currently allow data to export in more traditional file types...PDF, CSV, HTML, and a few others. Powerpoint doesn't seem to be really automated.
Is there a way, on the ASP.NET server side, to automate the creation and on-demand download of a powerpoint file format for a report from a system?
There's some documentation on MSDN about the OpenXML format that they're using:
Manipulating Excel 2007 and PowerPoint 2007 Files with the Open XML Format API (Part 1 of 2)
Manipulating Excel 2007 and PowerPoint 2007 Files with the Open XML Format API (Part 2 of 2)
In this article, Steve suggests using Aspose's Slide application.
He also explains step by step on how to generate the PowerPoint file.
Here are some code excerpts (in VB):
Opening an existing PowerPoint file:
Dim fs As System.IO.FileStream = _
New System.IO.FileStream("c:\mypath\myfile.ppt", _
System.IO.FileMode.Open, System.IO.FileAccess.Read)
Dim MyPres As Presentation = New Presentation(fs)
fs.Close()
Looping the slides and outputting their template formats:
Dim slides As Slides = MyPres.Slides
For i As Integer = 0 To slides.Count - 1
Response.Write(MyPres.Slides(i).Layout.ToString + "<br>")
Next
In his article, he describes more in detail on how to do it.
Well you have two ways of really doing this, without third party tools. The first would be with Automation of PowerPoint, but that requires that your server have PowerPoint installed. The second is to utilize the new pptx file file format and generate the powerpoint document using XML.
I have found that the best way to get started on the XML side is to simply create a powerpoint that does what you want, then save it and look at the XML. You can also review the microsoft documentation. Overall working with the XML formats is pretty easy.
Lastly, there might be some third party items out there, but be careful that they don't require COM automation.
In regards to the previous poster, your statement is incorrect.
You really only have one option for server side ASP.NET automation of this process.
Use the open xml links mentioned by Ben in the original answer...
Manipulating Excel 2007 and PowerPoint 2007 Files with the Open XML Format API (Part 1 of 2)
Manipulating Excel 2007 and PowerPoint 2007 Files with the Open XML Format API (Part 2 of 2)
The reason for this is that server side automation of office is completely unsupported and is bad coding practise, running com automation servers that are designed for interactive usage in a non-interactive environment is a potential recipe for disaster.
so in summary use the open xml api and generate your pptx's.
There are also other third-party options similar to Aspose Slides, such as OfficeWriter's PowerPoint Writer.
I'm not exactly sure how Aspose Slides works, but with PowerPoint Writer you have an existing, formatted PowerPoint presentation with data markers in it, the you process it with PowerPoint Writer to replace the data markers with data. Here are some examples.
there is another method ,convert your power point presentation to images or xps(silver light presentation) and then use some sort of json(jquery) to show and download them.
i implement the images and xps silver light presentation in my web application

Resources