pdf-generation

Can I use an iTextSharp cell event to repeat data on the next page when a row is split?

时间秒杀一切 提交于 2020-01-06 08:39:06
问题 I have a very deep row in a pdfptable. The columns in the left-hand side of this row contain a sub table which has many rows within it. I would like the deep row to split onto more than one page if it is too deep to fit on one page. I can set SplitLate to false to ensure that the row splits. However, the data for the deep columns on the right hand side only shows on the first page and I would like it to be repeated on the second page. A bit of investigation suggested that I could use a cell

Creating PDF's using PHP

半腔热情 提交于 2020-01-06 06:57:31
问题 What I am wanting to do is create a PDF ideally from HTML code. I found a class called dompdf but I'm having issues with font and page breaks. Does anyone know of another script or even a better way in general to generate PDF files? The reason why I am converting HTML to PDF is because I want someone to use a WYSIWYG editor to create the contents and click save to generate their PDF file... Any input would be greatly apprecaited 回答1: Due to the different nature of PDF and HTML you'll always

PdfContentStreamEditor rotating image on PDF file

余生颓废 提交于 2020-01-06 06:35:20
问题 I have what I hope is an easy question. I'm trying to use iTextSharp to modify some PDF files, however it seems that the XMP metadata that iTextSharp puts at the end of the files is ruining the layout of the PDF files (and I'm not very conversant in the PDF format to understand at all why). You can see from the two images above that the document appears to have been rotated. From looking at the PDF files as binary differences however, the only thing different appears to be some XMP metadata

Generate a PDF from a view for emailing

只谈情不闲聊 提交于 2020-01-06 06:07:53
问题 I'm super new to Objective C, so please help me out. I have a view with several labels and text views. I am trying to generate a PDF file for that page/view and attach to an email. First, I tried this approach and it seems either the file is not created or not attached to the email. Here are my codes: NSMutableData *pdfData = [NSMutableData data]; UIGraphicsBeginPDFContextToData(pdfData, self.view.bounds, nil); UIGraphicsBeginPDFPage(); [self.view drawRect:self.view.bounds];

Grouping by column row values in xsl:fo table

别等时光非礼了梦想. 提交于 2020-01-06 05:23:08
问题 I am trying to group values of individual column in xsl fo:table, some values not grouped as expected, it get grouped according to previous column's grouped value, i need individual grouping in columns, check with my xsl and xml file, i am using these files to generate PDF file using apache FOP. My XSL File <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fo="http://www.w3.org/1999/XSL

Prevent copying pdf contents generated using iText

好久不见. 提交于 2020-01-06 04:06:07
问题 We have a web application which generates a report and saves it in pdf using iText. We want to prevent user from copying the contents from this file. I thought this can be achieved by converting pdf contents to image and then add that image to pdf but it seems iText cannot convert pdf to an image. Is there a way I can do this using iText? 回答1: As @YuriyGalanter indicated, restrictive permissions in PDFs are primarily defined in the context of encryption in PDFs, cf. section 7.6.3.1 of the PDF

Wicked PDF - Wait for AJAX request to finish

寵の児 提交于 2020-01-05 07:40:17
问题 I'm trying to generate a PDF using WickedPDF and all of my static HTML/CSS is loading. I have a few elements on the page that are populated using AJAX requests, but they are not showing up in the PDF. I know :redirect_delay can be passed as a parameter, but this does not help in the case of waiting for my AJAX calls to finish. Since I didn't see any mention of Wicked PDF and pages generated from AJAX calls, I figured I'd ask: Is what I'm trying to do possible with Wicked PDF (or other

itext XMLWorkerFontProvider.DONTLOOKFORFONTS and generate multi language HTML page

亡梦爱人 提交于 2020-01-05 04:54:07
问题 Can someone help to explain what is XMLWorkerFontProvider.DONTLOOKFORFONTS for? Not much explainations in the apidoc. Also, I have seen some examples on XMLWorkerFontProvider.DONTLOOKFORFONTS, mostly used with XMLWorkerFontProvider.register("font file path") to generate multi language file for known text / fonts, in the case where the text is dynamic (i.e.: can be a mixture of any language ), how should this be handled? I tried to register all the google noto fonts that can support a lot of

How can I override PDF print dialog settings with iTextSharp

左心房为你撑大大i 提交于 2020-01-05 04:50:09
问题 Can any one tell me how to override page orientation selection in pdf print dialog using iTextSharp. I am using these lines to override scaling and "Choose paper source by PDF page size" writer.AddViewerPreference(PdfName.PRINTSCALING,PdfName.NONE); writer.AddViewerPreference(PdfName.PICKTRAYBYPDFSIZE, PdfBoolean.PDFFALSE); 回答1: Please check table 150, entitled "Entries in a viewer preferences dictionary", in ISO-32000-1 (you can download a copy from the Adobe web site). It contains all the

Itext PDF writer, Is there any way to allow unicode subscript symbol in the pdf? (Without setTextRise)

99封情书 提交于 2020-01-05 03:01:29
问题 I have been trying to create PDF files using Itext PDF writer. I have found that Superscript (0,4,5,6,7,8,9) and Subscript (0,1,2,3,4,5,6,7,8,9) are not allowed in the default font. Only Superscript 1,2,3 are allowed in PDF texts in the default setting. A String in my PDF contains subscript and superscript characters, is there a way i can display them in PDF? I searched and found: setTextRise() method is used to change the displacement of the text with respect to the current line, I cannot