pdf-generation

Create PDF file with default “zoom to page level” (pdfbox)

故事扮演 提交于 2020-01-11 07:54:10
问题 I create a PDF file using pdfbox 2.0. when i open this pdf file in Adobe reader (windows), by default its open with zoom fit width . What I need pdf file open with default zoom to page level . My try: Set zoom level at 100. PDPageXYZDestination dest = new PDPageXYZDestination(); dest.setPage(pagea); dest.setZoom(1); dest.setTop(new Float(PDRectangle.A4.getHeight()).intValue()); PDActionGoTo action = new PDActionGoTo(); action.setDestination(dest); document.getDocumentCatalog().setOpenAction

iText 7 PDF accessibility: “Table header cell has no associated subcells”

僤鯓⒐⒋嵵緔 提交于 2020-01-11 04:10:14
问题 I am converting HTML to a PDF using iText 7. I need the PDF to be accessible (508 compliant with appropriate tags, etc), but, no matter what markup I put on a table, accessibility checkers give the same error: "Table header cell has no associated subcells". I've tried setting scope, headers, etc... nothing seems to work. Here is an example of one of the tables but all of them have the same issue: <table class="problems" summary="Patient's diagnosed problems and associated ICD codes."> <thead>

What is the FileType number for PDF in Excel 2007 that is needed to save a file as PDF through the API?

家住魔仙堡 提交于 2020-01-10 05:37:46
问题 I need to call a function in order to save an Excel workbook. I installed the PDF save addon for Excel 2007 but now I need to know what the number code is for the file format for when I save the excel file. An example of the excel file format numbers can be found here. http://www.dailydoseofexcel.com/archives/2006/10/29/saveas-in-excel-2007/ FileExtStr = ".xlsb": FileFormatNum = 50 FileExtStr = ".xlsx": FileFormatNum = 51 FileExtStr = ".xlsm": FileFormatNum = 52 FileExtStr = ".xls":

how to read .doc, .docx, .xls files in android [duplicate]

浪尽此生 提交于 2020-01-10 03:50:11
问题 This question already has answers here : Convert Word doc to HTML programmatically in Java (11 answers) Closed 6 years ago . I am trying to show the PDF & .DOC files in android. I am able to show PDF files, but I have problem to show the .DOC, .DOCX, .PPT and .xls files . With the help of WORD-EXTRACTOR we can fetch the text of the doc file but the problem is it only gives text not images from .doc file. I searched to convert the doc file to PDF file but didn't succeed. Is it possible to

Generating PDF in .NET using XSL-FO

匆匆过客 提交于 2020-01-10 01:23:07
问题 I need to generate a pdf in .NET using XSL-FO. There are no shortage of libraries to do this. What library would you suggest that I use and why? 回答1: This is an old question, I know, but none of the answers to date actually addressed the OP QUESTION. She asked for options for using XSL-FO, not "how to generate PDF using code?". The primary non-commercial answer on the actual question is: Apache.org Project's FOP Formatting Objects Processor. It takes XSL-FO compliant xsl code and xml and

Maintain CSS styling when converting HTML to PDF in ASP.NET [closed]

杀马特。学长 韩版系。学妹 提交于 2020-01-09 19:34:53
问题 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 2 years ago . I am using ITextSharp to convert an HTML page to PDF. However, ITextSharp prints the CSS in the STYLE declaration straight out, ignores stylesheets even when added programmatically and only listens to some inline styles (e.g. font-size and color but not background-color ). Is there something I am missing with

Maintain CSS styling when converting HTML to PDF in ASP.NET [closed]

こ雲淡風輕ζ 提交于 2020-01-09 19:34:11
问题 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 2 years ago . I am using ITextSharp to convert an HTML page to PDF. However, ITextSharp prints the CSS in the STYLE declaration straight out, ignores stylesheets even when added programmatically and only listens to some inline styles (e.g. font-size and color but not background-color ). Is there something I am missing with

Best C# API to create PDF [closed]

不问归期 提交于 2020-01-08 15:44:16
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Can you recomend any PDF API for C#. Free is the best, but I don't mind paying for it. 回答1: Update: I'm not sure when or if the

Best C# API to create PDF [closed]

自古美人都是妖i 提交于 2020-01-08 15:39:46
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . Can you recomend any PDF API for C#. Free is the best, but I don't mind paying for it. 回答1: Update: I'm not sure when or if the

How to convert an existing A4 PDF document to an A3 booklet?

匆匆过客 提交于 2020-01-07 11:19:29
问题 Hi We have a requirement to convert an existing A4 size pdf to A3 Size PDF in java. Since i am new to itext api conversion pdfs, Can anyone guide me how to do in java using itext or any other api to do. If sample reference provided then appreciable. UPDATe: Output PDF should be in A3 booklet format. 回答1: Please take a look at the MakeA3Booklet example. In this example, we take an existing PDF document with 299 A4 pages (primes.pdf) and we convert it to a 150-page A3 booklet (a3_booklet.pdf):