pdf-generation

how should i export data to office documents and pdf in asp.net mvc 3

让人想犯罪 __ 提交于 2019-12-23 03:50:45
问题 i'm looking for the best way to tackle this issue and in what order we do it best. we have an application where users can enter certain personal details, afterwards they can download the word document (.docx) or get a pdf (.pdf) of their personal data. what we already did is everything separate: with a *.docx template, we fill the parameterized fields and then save it as docx to the user and with a certain library called BioPdf we can convert the rendered word document into a pdf we are

Overlay text over an image background and convert to PDF

微笑、不失礼 提交于 2019-12-23 03:47:17
问题 Using .NET, I want to programmatically create a PDF which simply consists of a background image with two labels over it with different fonts and positioning. I have read about existing PDF libraries, but don't know (if applicable) which one is the easiest for such a simple task. Anyone care to guide me? P.D.: I do not want to create the PDF with a generated image that already overlays the text over the background image. Edit: This is the final working code: public string Create() { if (

Getting this “org.xhtmlrenderer.render.BlockBox cannot be cast to org.xhtmlrenderer.newtable.TableBox” while trying to render a pdf

六眼飞鱼酱① 提交于 2019-12-23 03:12:58
问题 I am getting this error while I am trying to render a pdf. I am using Nicolas Leroux's PDF module for the play framework. This is the entire stackstrace: Pastebin. Googling only reveals 4 results. They suggest removing any float properties, and position attributes, which I have removed, jsut to give it a try. I am still facing this problem. Has anyone been able to solve the issue? EDIT: This is the html that renders the pdf: #{extends 'main.html' /} #{set title:'Salary Details' /} <html>

Align Page Number to Right Corner in MigraDoc

∥☆過路亽.° 提交于 2019-12-23 02:52:38
问题 I know how to show page numbers and how to align them in footer. However my problem is that my Footer contains some custom text which should be left aligned and page number should be aligned to right corner. string footer = "My custom footer"; Paragraph footerParagraph = section.Footers.Primary.AddParagraph(footer); footerParagraph.AddTab(); footerParagraph.AddPageField(); Above will generate "My custom footer 1" for page 1, I need page nmuber to be right at the right most corner of the page.

Scanned Image/PDF to Searchable Image/PDF

拜拜、爱过 提交于 2019-12-23 02:32:23
问题 Can anyone suggest me how to convert a scanned image into a searchable image or a scanned pdf to a searchable pdf ? I have been stuck in this situation since quite a while now. i have tried pdfocr application in ubuntu but no success. 回答1: Tesseract version 3.03 supports creation of searchable PDF from image. For PDF, you can use GhostScript to convert it to image before sending it to Tesseract. https://github.com/tesseract-ocr/tesseract 回答2: Currently, there is no right way of doing this on

Convert a PDF to one page PDF reason for this is PDF pages doesnot have same page height [closed]

你。 提交于 2019-12-23 02:08:29
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 6 years ago . I have a PDF and I want to shrink it down to one page. This does not work: //pages size_t pages = CGPDFDocumentGetNumberOfPages(document); pageRect.size.height = pageRect.size.height*pages; CGDataConsumerRef

Uploading a PDF file to Google Docs generated by pdfjet on GAE/J

强颜欢笑 提交于 2019-12-22 17:48:10
问题 I need to upload a PDF file to users google docs which is generated by pdfjet on google app engine. I figure out to generate pdf using pdfjet for gae/j. pdfjet uses streams to create the pdf. Is there anyway to convert stream to file so I can upload to users google docs. I tried gaevfs but couldn't make it work. I can use another pdf generation solution if needed or another virtual file system etc. PDF generation code ByteArrayOutputStream os = new ByteArrayOutputStream(); PDF pdf = new PDF

Is it at all possible to convert a document to PDF or edit a PDF in C# using only free software?

Deadly 提交于 2019-12-22 16:43:40
问题 I had this stupid idea of creating a template as a .docx or .rtf or .pdf and then replacing the text in that document to generate reports. This seemed like a better way of doing it than using paid reporting software. Well, I believe I've tried just about everything now and I'm amazed at how impossible it is to do anything with pdfs. Try 1 HTML -> PDF A lot harder to design the template. It doesn't look the same when you print it. Never got it working outside of a command line example (not

PDF or Word creation documents with Yii?

大城市里の小女人 提交于 2019-12-22 10:36:57
问题 Hello I'm building an application with Yii that will now generate reports. My client wants to edit the reports after these are generated. I think the best option is creating a Word document so my client will be able to edit it, but I can't find information or extensions to create Word documents with Yii Framework. I've also seen but not test yet a couple of PDF extensions such as DOMPDF, tcpdf and Zend_PDF. But if I generate a PDF report, then, how is my client going to edit this file? Guys I

Converting .xls to .pdf using Java(or not)

好久不见. 提交于 2019-12-22 10:28:41
问题 Is there a way to convert a xls file into a pdf ? I want to make a dynamical report directly to pdf file, but didn't find a way to make dynamic columns on iReport, so I've made a method on Java that exports to xls dynamically. So I was wondering if is there a way to convert this file to pdf , but it need to be on a method from my code. Or if you have a better idea, it can be used too. Maybe there's a way to make this pdf file from my code as I did with xls . Please help me out. Thanks. 回答1: