pdf-generation

Why don't the iText 7 form field values print?

我是研究僧i 提交于 2019-12-13 07:02:11
问题 I have a PDF with forms that was generated with iText 7. However, when I fill out the form and attempt to print, the form values do not show up; only the form outline shows. How do I generate form fields that will display the value when printed? A sample form generator: import java.io.FileNotFoundException; import java.io.IOException; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import com.itextpdf.forms.PdfAcroForm; import com.itextpdf.forms.fields.PdfFormField; import com

converting multiple tiff to single pdf in .net

核能气质少年 提交于 2019-12-13 06:42:51
问题 I am using MVC 4 to build a web application. I need to implement a functionality that will convert multiple Tiff images to a single PDF. I have looked at things like ItextSharp. Has anyone else done something like this before? what tools/libraries have you used? Thanks 回答1: I am big fan of ImageMagick. Though it can do so much more than file conversion, it does do that pretty well. Use the .NET library Magick.NET Here is some sample code to convert to PDF To test using the command line tool,

Adding a pdf footer conditionally on certain pages in a multi-page pdf document

梦想的初衷 提交于 2019-12-13 06:35:18
问题 I have one web application which generates pdfs for each request.The data would be different in these pdfs based on user information.The number of pages can vary from 6 to 9.To construct the pdfs,i have multiple PdfPTables and each table has its own cells.Once i construct all the PdfPTables,as a final step i am adding the tables to the document. Recently i have a requirement as,when ever there is a particular text then we need to add the footer to indicate the occurrence of this text in the

Generate pdf file in Secured mode

穿精又带淫゛_ 提交于 2019-12-13 06:24:03
问题 I have written a code for pdf generation and it is working fine but now I to generate a pdf file in secured mode. Here is my code for Secured mode try { HttpServletResponse response = ServletActionContext.getResponse(); PDFGenerator pdf = new PDFGenerator(); PDFGenerator generator=new PDFGenerator(); /* byte[] bytes = null; bytes = (generator.generatepdf(sosValues.getCmaId(), null)).toByteArray(); //bytes = buffer.toByteArray(); response.setContentLength(bytes.length); if (bytes != null) {

Table on same line

末鹿安然 提交于 2019-12-13 05:53:22
问题 I use itextpdf-5.5.6 in my publisher project. I want to set a table on same line that a paragraph or phrase or text ? Something like that : In My Para |MY TAB OF ONE COLUMN| is present on a same line. is it possible ? 回答1: You don't need a table. What you need, is a generic tag event. Take a look at the answer by Chris Haas to this question: How do you underline text with dashedline in ITEXT PDF In this answer, he describes how to use a page event often referred to as the generic tag

After filling PDF with iTextSharp, form is not savable/ usage rights removed

爱⌒轻易说出口 提交于 2019-12-13 05:38:02
问题 I am currently working on a process that will use iTextSharp to partially fill a PDF form. This form is then emailed to a user and the user will finish completing the form. Then the form is submitted by email back to our email account and then processed. My problem is that once the PDF is sent out to a user, when the user opens the form and the data can not be saved. The original PDF that is used as a template can be filled out an saved. Somehow, during the process of using iTextSharp, the

why libreoffice sdk crash when simultaneosly and concurrently create documents through a webservice?

半世苍凉 提交于 2019-12-13 04:44:26
问题 i am running a webservice that replace text in a docx template and then convet it to pdf. i am using ubuntu 18.04 and glassfish server for its deployment when i made a single request for the service of converting everything is ok , but when i made a double request too fast like a double clicking issue or concurrent request, i got this exception: com.sun.star.lang.DisposedException at com.sun.star.lib.uno.environments.remote.JobQueue.removeJob(JobQueue.java:201) . . aused by: java.io

Java library to “draw” PDF files [closed]

怎甘沉沦 提交于 2019-12-13 04:42:49
问题 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 4 years ago . I'm in the need for a Java library where it is possible to draw, e.g. lines, similar to a graphics context. It should not require XML input, but just a programming interface. GPL or similar would be preferred. 回答1: Have a look at iText, which is licensed under AGPL. 来源: https://stackoverflow.com/questions

Getting an unwanted second title page when processing docbook to PDF via fop

空扰寡人 提交于 2019-12-13 04:42:21
问题 I'm constructing a standard book format in dockbook xml then formatting it to PDF via fop. When I construct the final PDF however i'm getting a second broken title page that has the title and the inline image again. On this page the title is justified across the whole page (so spread oddly) and the image is off-centre. The title also has an additional colon after it that is not present in the book title. If I remove the title page using XSL parameters, the title page is removed, but the

ssrs 2008 : Do not want group header to appear for every group

二次信任 提交于 2019-12-13 04:40:00
问题 I need to generate SSRS report as shown in the above picture (the top portion of the image got cut off but it has the header as shown below which should appear on only at top of each page). HEADER is as below Bin ItemNr Description QtyOnHand My data output is as below which I need to use to generate report format as shown above. ![enter image description here][2] Issues I am facing I used 2 tablix. The first tablix has groupby on ItemNr and I show only if the record has binPriority equal to 0