pdf-generation

Add annotation to PDF using plain C/C++ [closed]

自作多情 提交于 2019-12-23 06:44:31
问题 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 7 years ago . I am looking for a way to add a note to a PDF, only using plain C/C++ (without a third party library). How can I get this result? 回答1: Here is the PDF Reference Document Third Edition. PDF files are composed by

Add annotation to PDF using plain C/C++ [closed]

一笑奈何 提交于 2019-12-23 06:43:48
问题 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 7 years ago . I am looking for a way to add a note to a PDF, only using plain C/C++ (without a third party library). How can I get this result? 回答1: Here is the PDF Reference Document Third Edition. PDF files are composed by

Excel VBA to go to a folder and save all Excel Docs as seperare PDF files

匆匆过客 提交于 2019-12-23 06:41:31
问题 ive been working on some code for a while but cannot seem to get it to work.. think im nowhere near if im honest.. I want to program a button into an excel doc to go to a folder i.e. D:\Work\ which has lots of excel spreadsheets in, and save everyone one as a separate PDF doc? thanks in advance 回答1: The code below Loop through all files and then save all worksheets with in a workbook as PDF. I have commented the code to help you understand it. Option Explicit Sub Loop_Dir_for_Excel_Workbooks(

Using pdfclown few search keywords are not highlighting in chinese/japanese documents

a 夏天 提交于 2019-12-23 06:13:14
问题 Iam facing issue with some of the search keywords are not highlighting in chinese documents .Due to confidiential concerns iam not providing actual pdf . search keywords are 1)亿元或2) 收入亿来源 Please find the pdf document path which i tested ,pdfpath link. and ActualResult link .I have already posted related to this issue in following Link but some of the keywords are not highlighting properly in few chinese documents.Kindly provide your inputs to highlight the search keywords which i mentioned.

How to convert HTML to XHTML conversion to generate closed tags in iText C#

独自空忆成欢 提交于 2019-12-23 05:41:32
问题 I am using class iTextSharp.tool.xml.XMLWorkerHelper to add text in HTML format into a pdf file in a ASP .NET C# project. Here's my code : Paragraph bookingTemplateDescriptionContent = new Paragraph(); desc.Content = desc.Content.Replace("</br>", "<br/>"); //HACK : To avoid exception, replace the br tag in HTML formatted to XHTML formatted ElementList list = XMLWorkerHelper.ParseToElementList(desc.Content, null); foreach (var element in list) { foreach (Chunk chunk in element.Chunks) { chunk

HTML to PDF Batch Mode Converter that Respects CSS's @font-face?

☆樱花仙子☆ 提交于 2019-12-23 05:39:06
问题 NOTES: My request covers software or libraries, hence why I'm posting here. I also checked the similar threads here, but they asked for something subtly different. I have the following HTML page: <html> <head> <link rel="stylesheet" type="text/css" href="font.css"> <style> body { font-family: "Gotham SSm A"; font-size: 22px; } </style> </head> <body> SUMMARY </body> </html> And the font definition in font.css (truncated for brevity): @font-face { font-family: "Gotham SSm A"; src: url(data

Writing content of HTML table into PDF doc using iTextSharp in asp.net

こ雲淡風輕ζ 提交于 2019-12-23 05:17:09
问题 I have an HTML table stored in a string. I want to write that string into a PDF document using iTextSharp library. Please suggest the approach. Below is the table I want to write in a PDF file <table> <tr> <th>test</th><td>  </td><td>ABCD</td><td>  </td><td>  </td><td>  </td> </tr><tr> <th>test 2</th><td>  </td><td>XYZ</td><td>  </td><td>  </td><td>  </td> </tr> </table> 回答1: Its is possible. try this. //HTMLString = Pass your Html , fileLocation = File Store Location public void converttopdf

How can control the date format when generating a google docs (PDF) from a google spreadsheet with script?

╄→尐↘猪︶ㄣ 提交于 2019-12-23 04:47:09
问题 I generate a PDF file from a sheet of Google (that is populated with Google form) using a script and a template with Google Docs. But doing this I obtain that in google sheets date are in dd/mm/yyyy format while in the final PDF it's like this = Sat Feb 27 2016 00:00:00 GMT+0100 (CET) The "core" of the script is (for each row of the google sheet) var copyFile = DriveApp.getFileById(TEMPLATE_ID).makeCopy(FileName); var copyId = copyFile.getId(); var copyDoc = DocumentApp.openById(copyId); var

print pdf silently in c#

前提是你 提交于 2019-12-23 04:45:38
问题 I am trying to print pdf silently using adobe reader. I have taken the example from the following location: http://www.codeproject.com/Tips/598424/How-to-Silently-Print-PDFs-using-Adobe-Reader-and I am able to work as desired with the above example code in my localhost. But when I deploy my application on the server,I am unable to print the PDFs. In my localhost on button click event,I am creating the PDFs and saving it to one location and printing the same.While printing adobe window opens

iTextSharp acroFields.SetField method and multiple form fields with same name

落爺英雄遲暮 提交于 2019-12-23 04:43:09
问题 In case of multiple fields with same name iTextSharp acroFields.SetField(Name, Value) sets value for first field only. How to set the value for the rest of the fields? When looping thru the acroFields.Fields the field names are reported as form1[0].#subform[0].TextField1[0] - TextField form1[0].#subform[0].TextField2[0] - TextField form1[0].#subform[0].TextField2[1] - TextField form1[0].#subform[0].TextField2[2] - TextField When using acroFields.SetField("TextField1", Value); the value of