pdf-conversion

Ghostscript.NET Multithreading Issue

南笙酒味 提交于 2019-12-10 23:07:51
问题 The longest part of a monthly process we run is the automated slicing and conversion of some PDFs to images. Each PDF is read in, converted to 3 different PDFs, and those 3 are converted to images to be placed in e-mails to customers. The PDFs are unique per-customer, and we send a monthly PDF to at least 15,000 (frequently more like 22k) customers. Our PDF generation and slicing is already multithreaded, but I've been looking into parallelizing the remaining bits of it. To that end, I have

PDF compressing library/tool

怎甘沉沦 提交于 2019-12-10 16:13:28
问题 I am working on a project to reduce the size of the PDF's, compress them. I am wondering are there any good tools/library (.NET) in market that are really good. I did try few tools like Onstream Compression, but the results were not satisfactory. 回答1: Some additional (mega-)bytes can easily be squeezed out of PDFs. E.g., is a well known "PDF32000_2008.pdf" optimized enough? File size is 8,995,189 bytes. It uses object and xref streams, (nearly) no images, everything is packed tight. Or is it

What's the best program / API for converting Word docs to PDF that does NOT require Office to be installed? [closed]

怎甘沉沦 提交于 2019-12-09 15:39:31
问题 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 2 years ago . Well, really the title of the question says it all. There are similar questions on SO already. But here's some differences... I absolutely cannot use Office on the server. I must be able to convert the document programmatically. I don't really care how much it costs. Obviously cheaper is better, but if you have

Convert PDF to Doc with Google Script Editor

China☆狼群 提交于 2019-12-07 08:45:59
问题 I'm looking to convert PDF to google Doc in Drive using Google Script Editor. However keep getting error message "Converting from application/pdf to application/doc is not supported". Is this conversion possible in script? My attempt as below, would be great to hear any advice. function convertdPDF2doc() { var pdffile = DriveApp.getFileById(); var pdfblob = pdffile.getAs('application/doc'); pdfblob.setName(doc.getName() + ".doc"); DriveApp.createFile(docblob); } 回答1: function pdfToDoc() { var

PDF to Excel conversion putting each pdf page in a different worksheet

江枫思渺然 提交于 2019-12-07 04:51:30
问题 I am attempting to convert a pdf file (with 16 pages) to an excel file in order to run a program I already have in place in excel. I have a code that converts the pdf to excel already, but I would like the macro to put each separate page of the pdf file in a different worksheet in my excel file( currently it copies all of the pages and pastes page 1 of the pdf into a worksheet). All of the pages have the same heading if that helps at all. My current code is included below, thanks in advance.

Convert PDF to Doc with Google Script Editor

依然范特西╮ 提交于 2019-12-05 13:45:16
I'm looking to convert PDF to google Doc in Drive using Google Script Editor. However keep getting error message "Converting from application/pdf to application/doc is not supported". Is this conversion possible in script? My attempt as below, would be great to hear any advice. function convertdPDF2doc() { var pdffile = DriveApp.getFileById(); var pdfblob = pdffile.getAs('application/doc'); pdfblob.setName(doc.getName() + ".doc"); DriveApp.createFile(docblob); } function pdfToDoc() { var fileBlob = DriveApp.getFileById('0B3m2D6239t6aWHo5TVpyYzhxV1U').getBlob(); var resource = { title: fileBlob

PDF to Excel conversion putting each pdf page in a different worksheet

狂风中的少年 提交于 2019-12-05 10:45:38
I am attempting to convert a pdf file (with 16 pages) to an excel file in order to run a program I already have in place in excel. I have a code that converts the pdf to excel already, but I would like the macro to put each separate page of the pdf file in a different worksheet in my excel file( currently it copies all of the pages and pastes page 1 of the pdf into a worksheet). All of the pages have the same heading if that helps at all. My current code is included below, thanks in advance. Private Sub CommandButton1_Click() 'Declare Variable(s) Dim appAA As Acrobat.CAcroApp, docPDF As

Convert HTML file to PDF file using ITextSharp

限于喜欢 提交于 2019-12-04 11:48:27
问题 I'd like to accomplish the following: Given the path name of an html file, and the desired pathname of a pdf file, convert the HTML file to PDF using ITextSharp. I've seen plenty of code samples which do close to this but not exactly what I need. I believe my solution will need to use the iTextSharp.text.html.simpleparser.HTMLWorker.ParseToList() function but I'm having trouble getting this to work with an actual HTML file and outputting an actual PDF file. public void GeneratePDF(string

Unable to Export HTML Markup to PDF using iTextSharp API in asp.net using C#?

醉酒当歌 提交于 2019-12-04 06:26:47
问题 I have an HTML markup which has HTML Table and Images in it. I am using iTextSharp API to convert the HTML markup to PDF . But, unfortunately the iTextSharp fails to export the HTML markup containing the Images & Table to PDF. Error:The network path was not found. Result must be: Code: using iTextSharp.text; using iTextSharp.text.pdf; using iTextSharp.text.html; using System.Data.SqlClient; using System.Text; using iTextSharp.text.html.simpleparser; public string strSelectUserListBuilder = @"

table width not set in iTextSharp when converting html to PDF

帅比萌擦擦* 提交于 2019-12-03 17:09:07
I am trying to convert an html to pdf but the problem i face is that the html table tags width is not getting set correctly.. This is my html <table cellpadding='4' cellspacing='4' border='0' width='100%' style='width:100%'> <tr style='background-color:#000000'> <td colspan='2' align='center' valign='middle' width='100%'> <font face='Calibri' size='6' color='#FFFFFF'>Retail Natural Gas Deal Sheet</font> </td> </tr> <tr> <td colspan='2' width='100%'> </td> </tr> <tr> <td width='90%' style='width:90%'> <table cellpadding='0' cellspacing='0' border='0' width='100%'> <tr> <td width='42%'> <font