pdf-generation

wkhtmltopdf failure when embed an SVG

梦想与她 提交于 2019-11-30 07:59:23
问题 Has anyone in this vast space has ever had the luck to successfully create a PDF with an embedded SVG on an HTML? I've been receiving segmentation fault all the time. Or perhaps is there any other way to embed an SVG into an HTML file and then export it to PDF instead of wkhtmltopdf ? 回答1: I had similar problem. Seems like javascript embedded in SVG image can cause segmentation fault. I was generating SVG graphs using pygal Python module. To successfully generate PDF from HTML with SVG graphs

Convert Doc file to PDF in VB.Net

非 Y 不嫁゛ 提交于 2019-11-30 07:46:48
I have an situation where i need to convert Doc file into PDF file. I am devepoing windows application in vb.net. and also i don't want to user third party dll if possible. so can anyone give me some more idea ? You can use Office Interop for this. But it is better to use some managed library like Aspose using Microsoft.Office.Interop.Word; using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; ... // Create a new Microsoft Word application object Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application(); //

All columns of excelsheet are not fitted in same page of pdf; while converting using Excel VBA

时光怂恿深爱的人放手 提交于 2019-11-30 07:32:03
问题 Am trying to convert microsoft excel file with large number of columns (70+) into pdf using a Excel VBA code. In active workbook, am trying to save 'Sheet1' to PDF format at required path. I have the following code. Sub GetSaveAsFilename() Dim fileName As String fileName = Application.GetSaveAsFilename(InitialFileName:="", _ FileFilter:="PDF Files (*.pdf), *.pdf", _ Title:="Select Path and FileName to save") If fileName <> "False" Then With ActiveWorkbook .Worksheets("Sheet1")

Generate PDF with digital signature

拥有回忆 提交于 2019-11-30 07:04:05
Is it possible to generate PDF file in PHP with digital signature? An open-source solution is preferred. TCPDF starting from version 5.5.001 (released 2010-06-23) can sign generated PDF documents. It can also place transparent signature rectangle field over any bitmap/text, so clicking on the signature field brings up signature panel - cool feature. That same does seta-PDF signer, however you have to pay:-) If TCPDF extended with FPDI bridge, it can also parse already existing documents with PDF version up to 1.7 and sign it with X.509 certificate. It can 100% parse PDF documents generated by

Add a page to PDF document using iTextSharp

我怕爱的太早我们不能终老 提交于 2019-11-30 07:00:23
I would like to add a page to an existing PDF document containing simple text. I have tried the following code that I found on the internet, but so far I haven't got it to work: PdfReader reader = new PdfReader("1.pdf"); Document document = new Document(reader.GetPageSize(1)); PdfCopy copier = new PdfCopy(doc, new FileStream("2.pdf", FileMode.Create)); for (int pageCounter = 1; pageCounter < reader.NumberOfPages + 1; pageCounter++) { //byte[] page = reader.GetPageContent(pageCounter); copier.AddPage(copier.GetImportedPage(reader, pageCounter)); } copier.NewPage(); copier.Add(new Paragraph(

Print PDF in Firefox

廉价感情. 提交于 2019-11-30 06:39:47
问题 How to print a PDF in Firefox? This function works in Chrome but not in Firefox function print_pdf(url){ var id = 'iframe', html = '<iframe id="'+id+'" src="'+url+'" style="display:none"></iframe>'; $('#main').append(html); $('#'+id).load(function(){ document.getElementById(id).contentWindow.print(); } } error Error: Permission denied to access property "print" 回答1: Firefox: Permission denied to access property "print" This is a bug in firefox. Locally it can be disabled by going to about

How best to write documentation targeting both HTML and PDF? [closed]

帅比萌擦擦* 提交于 2019-11-30 06:23:20
问题 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 5 years ago . Latex-to-html converters I've seen in the past have been pretty awful. Editing raw html is no fun and doesn't seem to translate well to the printed page. How do others solve this problem? Links to examples (both pdf and html) would be great. Added: Another similar question was just asked: What formatting

Internal links in rmarkdown don't work

孤街浪徒 提交于 2019-11-30 06:03:14
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: 3 html_document: css: tables.css number_sections: yes theme: cerulean toc: yes toc_depth: 3 subtitle

How to generate PDF from markdown using pure ruby

安稳与你 提交于 2019-11-30 05:58:21
I'm currently using Kramdown to generate HTML from Markdown in Ruby. I know that I can generate a latex file using kramdown and convert it to pdf usaing a command line utility. But I want a pure ruby solution. Is there a way to convert markdown to pdf using only ruby without using command-line utilities? You can use https://github.com/walle/gimli I made it just for this purpose. Though, I use textile. But gimli supports all formats supported by GitHub-Markup. Prawn: The Pure Ruby PDF Generation Library http://www.rubyinside.com/prawn-ruby-pdf-library-987.html I haven't tried it myself, but

How to add hyperlink in pdf using pdfbox

白昼怎懂夜的黑 提交于 2019-11-30 05:56:55
问题 I want to add a hyperlink in PDF created using PDFBOX , such that i click on some text example 'Click here' will redirect to URL. I tried using PDAnnotationLink and PDActionURI , but how to add it in contentstream ? PDBorderStyleDictionary borderULine = new PDBorderStyleDictionary(); borderULine.setStyle(PDBorderStyleDictionary.STYLE_UNDERLINE); PDAnnotationLink txtLink = new PDAnnotationLink(); txtLink.setBorderStyle(borderULine); txtLink.setColour(colourBlue); // add an action PDActionURI