pdf-generation

xsl:fo retrieve-marker not valid child

﹥>﹥吖頭↗ 提交于 2019-12-20 03:12:42
问题 I need for my xsl:fo transformation an <fo:retrieve-marker> in an table but I don't know if this is possible because I use FOP Processor for my transformation. If i use the <fo:retrieve-marker> in my table I always get an error message that the tag has to be in an static content. Here is the table with the marker <xsl:call-template name="MMEL-Table-Header"/> <!-- Bottom table Line --> <fo:table-footer> <fo:table-row> <fo:table-cell> <fo:marker marker-class-name="footer-continued"> <fo:inline>

EXCEL VBA : Loop is working but not refreshing before printing to PDF file

别说谁变了你拦得住时间么 提交于 2019-12-20 02:54:17
问题 Good Morning everybody! I have an issue concerning my VBA Code. I actualy just want to create a loop that prints PDFs that are based on the same background template (which is in the sheet called AFFIDAVIT CREATOR) replacing some 4 boxes (labels and images) from the INPUT Sheet. So far, the loop is working properly. Only problem: It generates the PDF files according to the given name (variable r) but refreshes the sheet AFTER exporting to PDF. Result: Mutliple files with different names but

Imagemagick: generate raw image data for PDF flate embedding?

谁说我不能喝 提交于 2019-12-19 21:44:28
问题 I'm trying to come up with a command-line, source code example of a PDF ( see also How to generate plain-text source-code PDF examples that work in a document viewer? ), but with embedding an image. This is how far I got - I have a template hello.pdf : %PDF-1.4 1 0 obj << /Type /Catalog /Outlines 2 0 R /Pages 3 0 R >> endobj 2 0 obj << /Type /Outlines /Count 0 >> endobj 3 0 obj << /Type /Pages /Kids [ 4 0 R ] /Count 1 >> endobj 4 0 obj << /Type /Page /Parent 3 0 R /MediaBox [ 0 0 612 792 ]

How to create a rounded corner table using iText\iTextSharp? [duplicate]

谁说胖子不能爱 提交于 2019-12-19 10:25:40
问题 This question already has an answer here : How do I round the corners of an iTextSharp table border? (1 answer) Closed 5 years ago . I have to create a table having rounded corners, something like it: Can I do it with iTextSharp? 回答1: This is done using cell events. See the Calendar example from my book (Java / C#). Make sure that you don't add any "automated" borders to the cell, but draw the borders yourself in a cell event: table.DefaultCell.Border = PdfPCell.NO_BORDER; table.DefaultCell

Formatting a header in an Emacs function to print a buffer to PDF w/ line wrapping

女生的网名这么多〃 提交于 2019-12-19 08:56:30
问题 Rupert Swarbrick came up with the following three functions to print an Emacs buffer to pdf in which lines are wrapped (this is not normally the case when using ps-print* functions). The problem is this function is that to achieve this line wrapping, a copy of the current buffer has to be made. This effectively breaks the capability of ps-print-buffer-with-faces to display a correct header on top of each page in the resulting PDF file. As part of his solution, Rupert Swarbrick wrote a

Add a signature image to a pdf without showing the pdf data to user in iOS

我怕爱的太早我们不能终老 提交于 2019-12-19 05:56:14
问题 I want to add the signature on existing pdf. I have done this in following way: 1) Load existing pdf on UIView say mainView. 2) Add a signature image on mainView. 3) Call a following function -(NSMutableData *)getPDFDatafromUIView { DebugLog(@""); // Creates a mutable data object for updating with binary data, like a byte array NSMutableData *pdfData = [NSMutableData data]; // Points the pdf converter to the mutable data object and to the UIView to be converted UIGraphicsBeginPDFContextToData

How to force a Save As dialog when streaming a PDF attachment

亡梦爱人 提交于 2019-12-19 04:58:08
问题 I am using the following code to stream a pdf to the browser: header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Pragma: public"); header("Content-type:application/pdf"); header("Content-Disposition:attachment;filename=file.pdf"); echo $pdf; Works fine, except (in Chrome anyhow) it just saves the file "file.pdf" - it does not prompt a Save As dialog so I can rename the file, if I choose. I suspect this may be one of those browser-dependent things, but is it possible

Create PDF from a PNG image Or Java Panel

萝らか妹 提交于 2019-12-19 04:15:25
问题 I'm looking for a Java library that will can take a Image (PNG) and create a PDF. Or Create the PDF directly from a java panel that has been drawn. 回答1: You can achieve this using Gnostice PDFOne for Java (http://www.gnostice.com/PDFOne_Java.asp). Find below the code snippet that creates a PDF document from a PNG image. PdfDocument doc = new PdfDocument(); // Read the image as BufferedImage object BufferedImage bufImg = ImageIO.read(new File( "SampleImage.PNG")); // Create PdfImage object

How to create PDF reports using PL/SQL

ぐ巨炮叔叔 提交于 2019-12-19 04:07:31
问题 Is there PL/SQL package or engine available which would enable the creation of PDF reports from stored procedures? 回答1: If your looking for a freeware or open source package, their is this. I've not used it, but it has good reviews. lPL_FPDF If you have a budget, then this, which enterprise class product, meaning excellent documentation, is available. plpdf. The commercial package is written in native Pl/SQL so will be very easy to use. The open source package I don't know. If your running in

CSS styles not being applied to PDF with iTextSharp

ぃ、小莉子 提交于 2019-12-19 02:25:28
问题 I am attempting to convert a portion of my webpage to pdf using iTextSharp, and while the pdf generation is working correctly, none of the css styles are being applied. I've tried applying the styles one at a time, but that doesn't seem to work. This is what I've come up with so far: //Get the portion of the page to convert. StringBuilder sb = new StringBuilder(); print_div.RenderControl(new HtmlTextWriter(new StringWriter(sb))); string html = sb.ToString(); //Generate a random filename to