pdf-generation

Delphi convert doc to pdf using Word ActiveX

柔情痞子 提交于 2019-11-27 07:00:39
问题 Did anyone already wrote code for converting doc or docx to pdf using Word 2007 or Word 2010 pdf export capabilities? 回答1: I do it with the following .vbs script. If you need it in Delphi code then it would be easy enough to convert: Const wdDoNotSaveChanges = 0 Const wdRevisionsViewFinal = 0 Const wdFormatPDF = 17 Dim arguments Set arguments = WScript.Arguments Function DOC2PDF(sDocFile) Dim fso ' As FileSystemObject Dim wdo ' As Word.Application Dim wdoc ' As Word.Document Dim wdocs ' As

PDF Generation Library for Java [closed]

我只是一个虾纸丫 提交于 2019-11-27 06:33:43
I know this has been asked before, but I'm still undecided on which PDF generation framework to use for my current project. My requirements on-the-fly generation of PDF documents (mainly order forms, invoices) Java based easy to layout should be open source easy to change layout A lot of people seem to use iText , but I have some concerns (apart from the changed licence) regarding separation of concerns: In an HTML context there's good MVC support, where I usually stick to Spring MVC and FreeMarker to separate logic and layout. I'm a little bit worried that with iText you end up mixing code

Generate pdf file after retrieving the information [closed]

蹲街弑〆低调 提交于 2019-11-27 06:20:23
问题 I need to create a pdf file from data obtained from a database. I have to retrieve the data from database and generate these data as a pdf file. I would like to have pointers (helpful information). Thank you. 回答1: you can use itextsharp for that protected void btnExportPdf_Click(object sender, EventArgs e) { Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=BusinessUnit.pdf"); Response.Cache.SetCacheability(System.Web.HttpCacheability

HTML to PDF with Node.js

梦想的初衷 提交于 2019-11-27 05:49:56
I'm looking to create a printable pdf version of my website webpages. Something like express.render() only render the page as pdf Does anyone know a node module that does that ? If not, how would you go about implementing one ? I've seen some methods talk about using headless browser like phantom.js , but not sure whats the flow. Jozzhart Extending upon Mustafa's answer. A) Install http://phantomjs.org/ and then B) install the phantom node module https://github.com/amir20/phantomjs-node C) Here is an example of rendering a pdf var phantom = require('phantom'); phantom.create().then(function(ph

Convert Html into PDF using webview : can not create multiple pages

柔情痞子 提交于 2019-11-27 05:41:54
I'm working on one functionality in my current application, in which i want to convert html file into pdf format and save it in storage. for that i'm using Printing HTML documents PdfDocument right now I am not keen in using iText because they need you to buy a commercial license. i want to achieve this printing with webview. first i'm struggling with image display and proper display content which i achieve by changing my code and html file now i cannot create multiple pages in pdf. i can create only one page with very small images and content in size and all in one page instead of diving in

How can I serve a PDF to a browser without storing a file on the server side?

跟風遠走 提交于 2019-11-27 05:32:13
I have two methods. One that generates a PDF at the server side and another that downloads the PDF at the client side. How can i do this without storing it in the Server side and allow the client side to directly download this. The Following are the two methods: public void downloadPDF(HttpServletRequest request, HttpServletResponse response) throws IOException{ response.setContentType("application/pdf"); response.setHeader("Content-disposition","attachment;filename="+ "testPDF.pdf"); FileInputStream fis = null; DataOutputStream os = null; try { File f = new File("C://New folder//itext3.pdf");

How to fill out a pdf file programatically? [closed]

。_饼干妹妹 提交于 2019-11-27 05:28:17
What techniques available to fill a pdf form automatically using external data and save them. I have to use data from a database to fill a template pdf and save a copy of it on disk with that data. Language and platform is not issue but it would be good if it can run on windows and Linux. Any one can guide me through it or point to any article that might help. duffymo You can use either xsl-fo (if you like xml and xsl-t) or Lowagie's iText (Java) / iTextSharp (C#). To elaborate on the answer by duffymo you've approved, allow me to share a chapter of my book with you: manning.com/lowagie2

Delphi PDF generation [closed]

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-27 05:26:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . We're using Fast Reports to create reports but we're not very happy with the quality of the PDFs it creates. I know we can plug in other PDF components instead of the one that comes with FastReports so my question is What good PDF components are there out there (Free or Commercial) for Delphi? Ideally it should

Merge PDF's with PDFTK with Bookmarks?

霸气de小男生 提交于 2019-11-27 05:04:20
问题 Using pdftk to merge multiple pdf's is working well. However, any easy way to make a bookmark for each pdf merged? I don't see anything on the pdftk docs regarding this so I don't think it's possible with pdftk. All of our files merged will be 1 page, so wondering if there's any other utility that can add in bookmarks afterwards? Or another linux based pdf utility that will allow to merge while specifying a bookmark for each individual pdf. 回答1: You can also merge multiple PDFs with

Convert all sheets to PDF with Google Apps Script

懵懂的女人 提交于 2019-11-27 04:34:39
I'm trying to convert a Google spreadsheet with multiple sheets to a PDF file. The script below works, but it only creates a PDF with the last page of the spreadsheet. function savePDFs() { SpreadsheetApp.flush(); var ss = SpreadsheetApp.getActiveSpreadsheet(); var sheets = ss.getSheets(); var url = ss.getUrl(); //remove the trailing 'edit' from the url url = url.replace(/edit$/,''); //additional parameters for exporting the sheet as a pdf var url_ext = 'export?exportFormat=pdf&format=pdf' + //export as pdf //below parameters are optional... '&size=letter' + //paper size '&portrait=false' + /