pdf-generation

DOMPDF, I cannot create two pdf at time

*爱你&永不变心* 提交于 2019-11-28 12:49:41
问题 When i try to create two pdf at a time it's throwing errors... Fatal error: Uncaught exception 'DOMPDF_Exception' with message 'No block-level parent found. Not good.' in C:\wamp\www\si2i\application\libraries\dompdf\include\inline_positioner.cls.php on line 38 ( ! ) DOMPDF_Exception: No block-level parent found. Not good. in C:\wamp\www\si2i\application\libraries\dompdf\include\inline_positioner.cls.php on line 38 here is the code: $this->load->library('pdf'); $this->pdf->set_base_path($data

Create Multipage PDF directly from UiTextView in Ipad

主宰稳场 提交于 2019-11-28 12:45:40
I have created pdf with specific layout. The problem is that When the contents of text view is very long, Pdf will not automatically generate new page and I can not predefine how many pages will be created at run time. Can anyone please help me? You can try by using this code this may help you Keep a textview and a button in Interface builder and use the button action method and generate pdf import these frameworks #import <QuartzCore/QuartzCore.h> #import <CoreText/CoreText.h> -(NSString*)getPDFFileName { NSString* fileName = @"sample.PDF"; NSArray *arrayPaths =

How do I intercept the output stream of the current actionresult in .NET MVC3?

老子叫甜甜 提交于 2019-11-28 12:32:01
Hi and thanks for looking! Background I am using the Rotativa pdf tool to read a view (html) into a PDF. It works great, but it does not natively offer a way to save the PDF to a file system. Rather, it only returns the file to the user's browser as a result of the action. Here is what that code looks like: public ActionResult PrintQuote(FormCollection fc) { int revisionId = Int32.Parse(Request.QueryString["RevisionId"]); var pdf = new ActionAsPdf( "Quote", new { revisionId = revisionId }) { FileName = "Quote--" + revisionId.ToString() + ".pdf", PageSize = Rotativa.Options.Size.Letter };

PdfPTable as a header in iTextSharp

落爺英雄遲暮 提交于 2019-11-28 12:28:33
I need a table with about 12 cells to display as a header. The following code fails to do this. I am aware table2 does not have 12 cells. On the second page, only "testing" is displayed. What am I missing? Thanks in advance! Document document = new Document(); try { PdfWriter.GetInstance(document, new FileStream("TableTest.pdf", FileMode.Create)); document.Open(); PdfPTable table = new PdfPTable(1); table.WidthPercentage = 100; PdfPTable table2 = new PdfPTable(2); //logo PdfPCell cell2 = new PdfPCell(Image.GetInstance(@"C:\path\to\file.gif")); cell2.Colspan = 2; table2.AddCell(cell2); //title

Delphi convert doc to pdf using Word ActiveX

杀马特。学长 韩版系。学妹 提交于 2019-11-28 12:26:06
Did anyone already wrote code for converting doc or docx to pdf using Word 2007 or Word 2010 pdf export capabilities? I do it with the following .vbs script. If you need it in Delphi code then it would be easy enough to convert: Const wdDoNotSaveChanges = 0 Const wdRevisionsViewFinal = 0 Const wdFormatPDF = 17 Dim arguments Set arguments = WScript.Arguments Function DOC2PDF(sDocFile) Dim fso ' As FileSystemObject Dim wdo ' As Word.Application Dim wdoc ' As Word.Document Dim wdocs ' As Word.Documents Set fso = CreateObject("Scripting.FileSystemObject") sDocFile = fso.GetAbsolutePathName

how to get jsp output in pdf form using coding

不打扰是莪最后的温柔 提交于 2019-11-28 12:23:41
问题 i need to transform the output of jsp program into pdf file. suggest me some jar file and code to generate the pdf file of jsp output. iam also retrieving some values from database(mysql). I have read about jasper but it couldn't help me in any way. please help me. 回答1: FlyingSaucer/XHTMLRenderer (https://github.com/flyingsaucerproject/flyingsaucer) does a good job of HTML > PDF conversion however it does not work by magic: there are a few steps involved. Assuming you wanted to export an

Export a web-page to a PDF with FPDF

馋奶兔 提交于 2019-11-28 11:47:10
Complicated question with a (hopefully) simple answer. I'm looking into FPDF to export a web-page to a PDF. The web-page has been formatted for Print media, but since print media can be kind of iffy with CSS/HTML rendered object, I was hoping exporting to a PDF and then printing would make for less of a design headache. I've scrounged through the FPDF website and I'm not seeing a function for the one thing I was hoping to see. Some kind of include() function. I see a bunch of lines about formatting content, which I'm hoping means Am I over thinking this? Can I simply use include() after the

Need to merge multiple pdf's into a single PDF with Table Of Contents sections

一曲冷凌霜 提交于 2019-11-28 11:36:48
Will have 50-100 single PDF's that we'll be generating with a php script. PDF's are generally grouped into groups of 10-20. Each group needs to have it's own Table of Contents or Index, and then there also needs to be a Master Table of Contents or Index at the beginning. Or if that is too difficult we could get away with a single Table of Contents at the beginning. What's the best way to go about this? Will we need to create the Table of Contents and then export that to PDF and append it to the beginning and mash the rest of the files after that? Or is there a better solution? And what's the

How to create pdf files on android [duplicate]

风流意气都作罢 提交于 2019-11-28 11:29:27
This question already has an answer here: How to create PDFs in an Android app? [closed] 8 answers Can't find any library to create pdf files on Android. Can any one help me? There is a lot of pdf libraries for java (which you use when you program for android). Here are a few of them 来源: https://stackoverflow.com/questions/3521097/how-to-create-pdf-files-on-android

Text alignment issue with report generated as PDF file when using markup=“html” using iReport

大城市里の小女人 提交于 2019-11-28 10:53:49
问题 I have the following data to be printed in the PDF, 101 HARRIER WAY<br>OMVILLE<br>BELLSHIRE<br>OM1 1HA<br> It needs to be displayed in the following way, 101 HARRIER WAY OMVILLE BELLSHIRE OM1 1HA But is is printing like the following, UPDATE: When I use other text in the place of OMVILLE say 101 HARRIER WAY<br>HELLO WORLD BANGALORE<br>BELLSHIRE<br>OM1 1HA<br> it works well. I don't have any idea why it is not working when I give OMVILLE Code: <?xml version="1.0" encoding="UTF-8"?>