pdf

Can iTextSharp rasterize/export to JPEG or other image format?

跟風遠走 提交于 2021-02-07 07:17:21
问题 I need to be able to export PDF's that I am creating to JPEG, so that users can have a screenshot/thumbnail of the end product, which is faster than opening the whole PDF. I am running this on an ASP.NET website running in Medium Trust in the Rackspace Mosso Cloud . I have yet to find a library that will either work in Medium trust, or in the case of ABC PDF, which works great locally, wont load in Mosso. Maybe Mosso has a custom trust level? I know that iTextSharp works on Mosso, but I haven

PDF with an external image using XObject

荒凉一梦 提交于 2021-02-07 06:58:09
问题 I'm trying to build a PDF file with a link to an external file. I'm using the spec https://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/pdf_reference_1-7.pdf On page 348 there is an example of image with an alternate image loaded remotely. When I create a document with the example from the doc, the reader (using acrobat reader XI) doesn't fetch the image. There is no error message but no request is being made (checked using wireshark). Can I have only a remote image (ie no "normal"

Splitting PDF files into Paragraphs

对着背影说爱祢 提交于 2021-02-07 03:57:57
问题 I have a question regarding the splitting of pdf files. basically I have a collection of pdf files, which files I want to split in terms of paragraph . so to each paragraph of the pdf file to be a file on its own. I would appreciate if you can help me with this, preferably in Python, but if that is not possible any language will do. 回答1: You can use pdftotext for the above, wrap it in python subprocess. Alternatively you could use some other library which already do it implicitly like

Xamarin.Android pdf generator

北慕城南 提交于 2021-02-06 20:43:25
问题 I have been working on Xamarin.Android recently. I need to use pdf generator to send a report via email. I have been came across to the following blog. I do not really know what to put in the FileStream fs = new FileStream (???????); In addition to that, I would like to open or see that pdf on the screen. using System; using Android.App; using Android.Content; using Android.Runtime; using Android.Views; using Android.Widget; using Android.OS; using System.IO; using XamiTextSharpLGPL; using

How to generate a PDF from an HTML / CSS (including images) source in Python? [closed]

非 Y 不嫁゛ 提交于 2021-02-06 12:51:28
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Let's say I've got an HTML / CSS page with some images in it, and I wanted to generate a PDF from that source in Python - possible?

How to generate a PDF from an HTML / CSS (including images) source in Python? [closed]

不想你离开。 提交于 2021-02-06 12:51:13
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . Let's say I've got an HTML / CSS page with some images in it, and I wanted to generate a PDF from that source in Python - possible?

rendering a ReportLab pdf built from SimpleDocTemplate

元气小坏坏 提交于 2021-02-06 10:43:09
问题 I've a got a django app that currently generates pdfs using a canvas that the user can download. I create a StringIO buffer, do some stuff and then send call response.write. # Set up response response = HttpResponse(mimetype='application/pdf') response['Content-Disposition'] = 'attachment; filename=menu-%s.pdf' % str(menu_id) # buffer buff = StringIO() # Create the pdf object p = canvas.Canvas(buff) # Add some elements... then p.showPage() p.save() # Get the pdf from the buffer and return the

rendering a ReportLab pdf built from SimpleDocTemplate

耗尽温柔 提交于 2021-02-06 10:42:07
问题 I've a got a django app that currently generates pdfs using a canvas that the user can download. I create a StringIO buffer, do some stuff and then send call response.write. # Set up response response = HttpResponse(mimetype='application/pdf') response['Content-Disposition'] = 'attachment; filename=menu-%s.pdf' % str(menu_id) # buffer buff = StringIO() # Create the pdf object p = canvas.Canvas(buff) # Add some elements... then p.showPage() p.save() # Get the pdf from the buffer and return the

Sign pdf asynchronously using digest

痴心易碎 提交于 2021-02-06 09:32:46
问题 I'm trying to do the following setup for signing pdfs, broken down into asynchronous steps between a client and a server: A server receives a pdf and computes it's digest. Server sends the digest to a client. Client signs the hash at a later time. Client sends the signature to server. Server embeds the signature into the pdf. I'm basing myself mainly in PDF Signature digest and Create pkcs7 signature from file digest The second question allowed me to write most of the code, however I'm

Sign pdf asynchronously using digest

只愿长相守 提交于 2021-02-06 09:32:10
问题 I'm trying to do the following setup for signing pdfs, broken down into asynchronous steps between a client and a server: A server receives a pdf and computes it's digest. Server sends the digest to a client. Client signs the hash at a later time. Client sends the signature to server. Server embeds the signature into the pdf. I'm basing myself mainly in PDF Signature digest and Create pkcs7 signature from file digest The second question allowed me to write most of the code, however I'm