pdf-generation

How do I create a blank PDF signature field using an HTML input document or after exporting to PDF using ABCPDF?

谁都会走 提交于 2019-12-13 04:37:44
问题 I have a source HTML document generated from an ASPX. I then convert the html to PDF using ABCPDF. The html has a signature area, which is just a text box with a border. I need a signature field inside the PDF with a name that I can pass on. The PDF will be sent to a third-party who will correspond with the client and then digitally sign the PDF and send it back. Given that I have an html document, or PDF, how do I programmatically add the blank PDF signature field around the original html

Cannot copy indirect object from the document that is being written Java

无人久伴 提交于 2019-12-13 04:26:02
问题 I've created a method like this: public PdfDocument addBlankPage(final MediaModel pdfDocument) throws IOException { final InputStream inputStream = mediaService.getStreamFromMedia(pdfDocument); byte[] bytes = IOUtils.toByteArray(inputStream); final PdfReader reader = new PdfReader(new ByteArrayInputStream(bytes)); final PdfWriter writer = new PdfWriter(pdfDocument.getRealFileName()); final PdfDocument document = new PdfDocument(reader, writer); int index = document.getNumberOfPages(); final

CMS and store hi-resolution images in generated pdf

痞子三分冷 提交于 2019-12-13 04:18:39
问题 I'm looking for good CMS for publishing software manuals. Requirements: publish manual pages as web pages with thumbnails and shows full resolution after click on image, exporting manual pages to a pdf file with full resolution images instead to thumbnails . I found IMHO best wiki system named Tiki Wiki (https://info.tiki.org/) but when I export to pdf then I gets low resolution thumbnail. 回答1: I solve this problem by very simple Tiki Wiki code modification: Modify lib/wiki-plugins/wikiplugin

Convert document to PDF

牧云@^-^@ 提交于 2019-12-13 04:17:58
问题 I have a stranger document that I don't know which extension it is, and I need to convert it into a PDF , so the idea is to get that content dynamically, then we save it in server as a PDF My try : $responce = $this->getDocumentContent();//this function returns me the $responce content bellow. $documentFolder = $this->getDirectory().'/document/'; //var/www/project/document/ $documentFullPath = $this->getDirectory().'/document/file1.pdf'; $this->_io->mkdir($documentFolder, 0775);//create

Getting hindi to display on pdf created with JSP

自古美人都是妖i 提交于 2019-12-13 04:02:52
问题 This is the code I have <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page trimDirectiveWhitespaces="true" %> <%@page import="com.itextpdf.text.Document"%> <%@page import="com.itextpdf.text.Paragraph"%> <%@page import="com.itextpdf.text.PageSize"%> <%@ page import="javax.servlet.http.*,javax.servlet.*,com.itextpdf.text.DocumentException" %> <%@page import="java.io.*,java.text.SimpleDateFormat"%> <%@page import="java.sql.*,java.nio.charset.Charset"%

G.A.S. code to email a google sheet as a pdf file to a person through Telegram

泄露秘密 提交于 2019-12-13 04:01:29
问题 I use the following Google Script Code to generate a pdf of a google sheet and send it through email. Is there a way I can send the pdf through teleram to a person? How should I change the following code to send the pdf through telegram? function emailReport() { readyForExport(); var spreadsheet = SpreadsheetApp.getActive(); var subject = spreadsheet.getRange("U1:U1").getValues(); var emailTo = spreadsheet.getRange("V1:V1").getValues(); var message = spreadsheet.getRange("W1:W1").getValues();

Getting Info (title, subject, author, producer…) from PDF using javascript

牧云@^-^@ 提交于 2019-12-13 04:01:27
问题 Im trying to learn how to use javascript inside pdf files, and how to grab information from the /Info object like author and title. I've found two ways to use js inside a pdf, and I've put together 2 samples, the first works, the second doesn't. They both execute javascript, but the second code can't access the /Info data. I can't figure out why. Sample 1 (This code shows an alert with the contents of /Title, works fine): %PDF-1.3 1 0 obj <</Type/Catalog/Pages 5 0 R/OpenAction 3 0 R>> endobj

Is there a text string variable type in Adobe PDF specification?

試著忘記壹切 提交于 2019-12-13 03:58:39
问题 In the below example (from gnupdf.org/Introduction_to_PDF; also related: How to generate plain-text source-code PDF examples that work in a document viewer?), text is written verbatim using: (Hello, world!) Tj Is there a way I could store this "Hello, world!" in a variable (dictionary?), say /MyStringVar , and then output it multiple places using something like: (/MyStringVar) Tj (I've tried the above, couldn't get it to work; /MyStringVar is interpreted verbatim) Here is the code, hello.pdf

iTextSharp generates corrupted PDF file

主宰稳场 提交于 2019-12-13 03:55:04
问题 I am trying to generate a PDF file from and HTML string and external css files and save the PDF to disk. As you can see from this example, I am using very simple html. I know the css files are getting read into the ccsResolver by viewing intellisense. Here is the code I am using : internal string Create(PdfDocumentDefinition documentDefinition) { MemoryStream output = new MemoryStream(); MemoryStream input = new MemoryStream(Encoding.UTF8.GetBytes("<html><head></head><body>Hello, World!</body

How to export an InfoPath Form as a PDF from within a WinForm hosted FormControl?

我与影子孤独终老i 提交于 2019-12-13 02:56:52
问题 I have a C# WinForm app that (among other things) hosts an InfoPath FormControl to allow users to fill out some forms. The save method provided in the WinForm app, in addition to saving the form XML, also exports the form as a PDF so that a PDF copy can be sent out via email. All worked well when we were using InfoPath 2007. Since the company is now upgrading all machines with Office, from 2007 to 2010, I need to update the app to work with InfoPath 2010. After changing the required