pdf-generation

How can I merge PDF files (or PS if not possible) such that every file will begin in a odd page?

余生长醉 提交于 2019-11-27 14:52:10
问题 I am working on a UNIX system and I'd like to merge thousands of PDF files into one file in order to print it. I don't know how many pages they are in advance. I'd like to print it double sided, such that two files will not be on the same page. Therefore it I'd the merging file to be aligned such that every file will begin in odd page and a blank page will be added if the next place to write is an even page. 回答1: Here's the solution I use (it's based on @Dingo's basic principle, but uses an

Internal links in rmarkdown don't work

喜你入骨 提交于 2019-11-27 14:41:35
问题 I use rmarkdown to render pdf documents. Now I want to add internal links in the texts. In the helping pages of rmarkdown, it says an internal link is defined as: See the [Introduction](#introduction). When I Use e.g. the next code there should be two internal links: link1 and link2. Both don't link. Is there something obvious that I am doing wrong? Many thanks in advance! --- title: "Test" author: "test test" output: pdf_document: latex_engine: xelatex number_sections: yes toc: yes toc_depth

How to save created PDF in document folder and merge in iOS

*爱你&永不变心* 提交于 2019-11-27 14:33:37
Updated I am able to create single PDF page of photo captured with comment in iPHone. On button click I am generating one single PDF page every time and I want those PDF page in single PDF bunch. I am not able to merge the single PDF files in to bunch. http://mobile.tutsplus.com/tutorials/iphone/generating-pdf-documents/?search_index=3 I have followed the above URL code. Could you suggest some logic here. Thanks in advance. * Edit in code * can you check below code. - (IBAction)didClickOpenPDF { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);

iTextSharp in version 4.1.6 (with previous licence conditions)

戏子无情 提交于 2019-11-27 14:29:09
问题 I have an old project that is using iTextSharp library for PDF generation. iTextSharp DLL is added as reference to the project. iTextSharp was originally available under the LGPL licence. Some time ago the licence has changed to be AGPL (in release 5.0.0) that is copy left so you'd have to GPL all your code if you used it. My problem is that I don't know when I downloaded the DLL file that is linked in my project. I don't know if the DLL is still under LGPL or it is already under AGPL. And

Password protected PDF using C#

人盡茶涼 提交于 2019-11-27 13:40:11
I am creating a pdf document using C# code in my process. I need to protect the docuemnt with some standard password like "123456" or some account number. I need to do this without any reference dlls like pdf writer. I am generating the PDF file using SQL Reporting services reports. Is there are easiest way. I am creating a pdf document using C# code in my process Are you using some library to create this document? The pdf specification (8.6MB) is quite big and all tasks involving pdf manipulation could be difficult without using a third party library. Password protecting and encrypting your

How to edit or write on existing PDF with Ruby?

半世苍凉 提交于 2019-11-27 13:28:52
I have a couple of PDF template files with complex content and several blank regions/areas in them. I need to be able to write text in those blank regions and save the resulting PDFs in a folder. I googled for answers on this question quite intensively, but I didn't find definite answers. One of the better solutions is PDF::Toolkit , but it would require the purchase of Adobe Acrobat to add replaceable attributes to existing PDF documents. The PHP world is blessed with FPDI that can be used to simply open a PDF file and write/draw on it over the existing content. There is a Ruby port of this

Squared characters issue on wkhtmltopdf

此生再无相见时 提交于 2019-11-27 13:28:05
问题 I've installed wkhtmltopdf on Centos 5.5. (Since there was library issues, it's been 4 days). It's partly working now. I said partly because, all pdfs which was created by wkhtmltopdf include squares instead of text? What can I do? I've searched google, but I couldn't find anything. Appreciate your help. 回答1: When I had the black squares issue I was able to solve it without installing X11 by installing the urw-fonts package. 回答2: I was able to solve this problem using the following resource:

Remove all text from PDF file

时间秒杀一切 提交于 2019-11-27 13:17:03
问题 I am using Ghostscript to convert source PDF file into array of PNG images. Before I convert PDF page into PNG image I would need to extract (delete) all text from PDF so that converted page image would contain all other elements, excluding text. Can I achieve this with Ghostscript or will I need to look into different tools? I would also be interested in a tool that can read-save my source PDF removing all the text. 回答1: Since my previous answer, development has continued, and a new option

Applying watermarks on pdf files when users try to download the files

我的未来我决定 提交于 2019-11-27 13:16:17
问题 The solutions for my school's assignments all have waterstamps on the PDFs with our username on it. I was wondering if you guys know how to do something like that using PHP? Do they run a script prior to the download process? Thanks. 回答1: Although there are several very good PDF libs for PHP, if I were writing such a program I'd just shell out to run pdftk but you' still need to generate your watermark. $tempfile=tempnam(); system("pdftk input_file.pdf background watermark.pdf output

How do I create a PDF file, including images and text, from Python? [closed]

北城以北 提交于 2019-11-27 13:14:47
问题 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 6 years ago . I am looking for a way to create a sheet of labels, as a PDF file, from a Python program. Each label has one or two images, and a few lines of text (same font, e.g. Helvetica or Arial, but possibly different sizes, and using bold and italic). These being labels, it is important that the elements are positioned