pdf-generation

iTextSharp: table in landscape

匆匆过客 提交于 2019-11-30 18:05:11
问题 I'm using iTextSharp to generate a large document. In this document I want some specific pages in landscape. All the rest is portrait. Does anyone know how I can do this? Starting a new document is not an option. Thanks! 回答1: You can set the document size and it will affect the next pages. Some snippets: Set up your document somewhere (you know that already): var document = new Document(); PdfWriter pdfWriter = PdfWriter.GetInstance( document, new FileStream(destinationFile, FileMode.Create)

rtf format to pdf

北城余情 提交于 2019-11-30 18:01:06
问题 Is there any way to convert rtf format to pdf using PHP? Thanks 回答1: If you want to stick with pure PHP, you can probably use HTML as an intermediary: Convert RTF to HTML http://freshmeat.net/projects/rtf2htm/ , http://www.phpclasses.org/package/1930-PHP-RTF-to-HTML-converter-with-latin-character-support.html Optionally: clean up the HTML http://htmlpurifier.org/ Convert HTML to PDF http://dompdf.github.io/ 回答2: You can use OpenOffice command line interface for that. Check my answer to a

How do I draw graphics to PDF using iText?

北慕城南 提交于 2019-11-30 17:30:58
问题 I am trying to complete an example that draws graphics and writes them to PDF, but I keep getting errors that the PDF has no pages. if I add something simple with document.add() after opening it works fine, I just never see the graphics. Here is my code: Document document = new Document(); PdfWriter writer = new PdfWriter(); response.setContentType("application/pdf"); response.setHeader("Content-Disposition", " attachment; filename=\"Design.pdf\""); writer = PdfWriter.getInstance(document,

HTML Tabel rendering to PDF. Content in Pdf not tabel format

泪湿孤枕 提交于 2019-11-30 16:45:45
Here i am trying to make a PDF using one HTML page table content. for me its working fine in creating PDF and downloading, but the issue is am not getting correct table format which i used in HTML page (how it looks in web page like that i need in PDF too ). below am giving my code and table structure. i am using HTML table export jQuery plugin MY HTML CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel=

searching for PDF converter supporting many input types

谁说我不能喝 提交于 2019-11-30 16:23:08
In our company, we develop a program for our clients that takes files and transfer it to us. We need to support many types of files to silently convert to pdf (for signing). We've used, until now, pdf creator, but it's not stable and has many bugs. We want to buy a .dll that can do things like dynamicpdf (very expensive), as developing it ourselves will take to long. This solution needs to support image types like jpeg, gif, bmp, tiff, html, htm, mht and many more. Any thoughts on viable solutions to automate the creation of PDFs? Maybe you could try printing them to a Postscript file, and

HTML Tabel rendering to PDF. Content in Pdf not tabel format

二次信任 提交于 2019-11-30 16:20:33
问题 Here i am trying to make a PDF using one HTML page table content. for me its working fine in creating PDF and downloading, but the issue is am not getting correct table format which i used in HTML page (how it looks in web page like that i need in PDF too ). below am giving my code and table structure. i am using HTML table export jQuery plugin MY HTML CODE <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org

searching for PDF converter supporting many input types

痴心易碎 提交于 2019-11-30 16:11:13
问题 In our company, we develop a program for our clients that takes files and transfer it to us. We need to support many types of files to silently convert to pdf (for signing). We've used, until now, pdf creator, but it's not stable and has many bugs. We want to buy a .dll that can do things like dynamicpdf (very expensive), as developing it ourselves will take to long. This solution needs to support image types like jpeg, gif, bmp, tiff, html, htm, mht and many more. Any thoughts on viable

Digital signature with timestamp in Java

折月煮酒 提交于 2019-11-30 16:10:25
I have an issue creating a valid CMS signature with Bouncy Castle using a trusted timestamp. The signature creation works well (I want to include the signature to a PDF file), the signature is valid. But after I include a trusted timestamp to the signature's unsigned attribute table, the signature still stays valid, but the Reader reports that The signature includes an embedded timestamp but it is invalid . This leads me to believe, that the hash I timestamp is not the correct one, but I cannot seem to figure out what is the problem with it. Signing code: Store store = new JcaCertStore(Arrays

How to save output from ggforce::facet_grid_paginate in only one pdf?

为君一笑 提交于 2019-11-30 15:29:54
I'm using the ggforce package to generate facetted plots over several pages: library(ggforce) for(i in 1:6){ ggplot(diamonds) + geom_point(aes(carat, price), alpha = 0.1) + facet_wrap_paginate(~cut:clarity, ncol = 2, nrow = 2, page = i) ggsave(paste0("~/diamonds_", i, ".pdf")) } which is generating the expected 6 PDF files: What is the easiest way have the output in one single pdf with 6 pages? I understand this can be done with the reports and pdftools packages, but I'm wondering if there's a more direct way to accomplish this. I'd expect ggforce to provide the functionality for the output to

generating pdf hangs on rails 4 using PDFkit gem

筅森魡賤 提交于 2019-11-30 15:07:35
问题 I'm able to download pdf file with: curl google.com | wkhtmltopdf - test.pdf so it means, wkhtmlpdf installation was successful. But, when I try to generate pdf file by accessing http://localhost:3000/contacts/1.pdf it hangs. In the status bar it shows: Waiting for localhost... Rails server output: Started GET "/contacts/1.pdf" for 127.0.0.1 at 2013-07-28 21:45:06 +0900 ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations" Processing by