Is it possible create pdf with dropdown field using jsreport and chrome pdf recipe? - jsreport

I was trying to generate the pdf with dropdown field using Jsreport with chrome pdf recipe so that use can select one of the value from the list and can save but i could not find a way to do that. Is it possible using chrome pdf recipe or should i use any other recipe like apache fop pdf etc..?

chrome doesn't support creating pdf with forms.
At this moment it is just part of the jsreport backlog to add support for pdf forms during postprocessing
Apparently it is difficult with fop, though perhaps possible
https://stackoverflow.com/a/32055510/1660996

Related

Edit texts in a PDF on Chrome using Chrome inspect

Is there any way to modify texts in PDF on Chrome using the Chrome inspect tool? I was stuck because in the Chrome inspect element, differently than any other websites and even PowerPoint presentations opened in Chrome, I'm able to modify texts, while with PDFs I cannot. Does anyone know how to do it?
Edit: Yes I know that the changes made through Chrome DevTools are temporary, but usually I'm able to make those changes, even if they're temporary. But with PDFs I can't.
There are differences in the way some browsers handle PDF data.
Chromium based browsers are more traditional in that the PDF plug-in is based on a Foxit/Skia collaboration, So you need to understand in that case, the downloaded PDF you are viewing is in the binary application/pdf (file already outside of the html wrapper).
Just as you cannot edit the PDF text in Acrobat Reader, the most you can do is incrementally add comments/annotation or field data to the end of the file, before save as a secondary download. The server cannot see your changes unless you submit as an upload.
With Firefox and Google docs there is often a different approach where the PDF is "Repr"oduced as an "Ex"ample (A ReprEx of the PDF) so it is built of a hybrid image and text overlay to emulate that part of the real PDF source. When you previously or later save the underlying downloaded PDF (for viewing) it would not necessarily include any browser based HTML editing, in the saving.
There are other techniques for other cases, but to answer the basic OP question most simply, the answer is NO you cannot change a PDF body, only add notes, etc via extensions. Microsoft variant of Chrome I.E. Edge has some inbuilt annotation ability thus does not need a second extension.
Found this question because I was googling a similar situation--I was wanting to manipulate type sizes and margins on a PDF in inspector via Chrome. I found that FireFox DevTools will allow you to view those styles and even alter the content in the PDF while in browser. I am late to the game but hope this provides answers for someone else in the future.

How to convert DOCX to PDF with nameddest to be linkable in FireFox and Chrome

From my website, I'm linking several sections within a PDF document using URL in format http://www.example.com/Document.pdf#nameddest=sectionXY
(as discussed e.g. here).
My PDF document is manually created from a DOCX document using the "PDF export" function in MS-Word 2016. The labels are marked as MS-Word bookmarks in the source document.
Unfortunately, the PDF viewer in the web browser scrolls to the proper section only in the Google Chrome. In other browsers (FireFox, IE 11 or Edge) the PDF document is always opened on the first page.
I'm sure my solution used to work several years ago both in Chrome, FireFox and IE.
Is there any way to make it work at least in Chrome and FireFox?
I'm able to use another converter (or even some PDF library) but I cannot afford to have my source document in any other format than DOCX. I'm even able to mark my "labels" another way than using MS Word bookmarks.
Word's PDF export may or may not create "named destinations" in the PDF file. It seems to vary based on platform (Mac vs Windows) and by version (2010 vs 2016).
LibreOffice can import .docx and has PDF export with specific options for creating named destinations from the document bookmarks.
Chrome uses PDFium Firefox uses PDF.js as its built-in PDF viewer, both of which support navigating to named destinations with #nameddest=sectionXY as well as some other navigation styles specified in RFC like #page=2. (See a related question on linking to sections.)
You can check your PDF file for named destinations with Popper's pdfinfo or other tools (see a related question on Unix.SE about listing named destinations).
This is probably not something you'll be able to change.
The PDF standard itself for instance does not really specify whether links like the one you posted should work. So support for them is not something you commonly find.
Of course if the browser is open source, you may always post a pull request.

ExpertPdf - how to generate pdf with marking text possibility from HTML

I'm using ExpertPDF library to generate PDF. I had the same code on two different servers. On one of them PDF was generated as a text (I could mark text in pdf and copy). On the second server PDF was generated as a picture, so I couldn't mark text in PDF file.
What is the differenc? Where should I looking for an error?
Now, after installing windows updates on all servers PDF is generateing as a Picture. I think, that updates had main influence on that change, but I'm not shure.
I had this problem too, with an older version of ExpertPdf that used IE for rendering. The problem is fixed in the last version (v9) that does not rely on IE anymore.

LiveCycle Font not rendering properly

I have installed Adobe LiveCycle ES4 using Default Settings on my system and i am using the GeneratePDFService for converting a URL to PDF.
The Logic is working properly but the problem is in the output PDF which is generated after conversion, the problem is, here in we are using Marathi Font, but after conversion only the Numerals/Numbers are displayed properly in Marathi in the PDF generated, instead of the whole Page.
in the page, we have used CSS font-face reference too and also tried implementing the font inline, but of no use.
The font used too is installed in the Windows\Fonts Folder.
Looking for favorable replies.
Thanks
I don't know the exact reason as I was using these services, it was working.Anyway I have a solution. For chrome ie and ff you can install save as pdf(webpage save as pdf) services.you can check for browser plugins or extensions for this.This will help you.For ie i think already a save as pdf feature is available.

web based form to collect data and populate to a fillable PDF

Is there a script that anyone can suggest that would allow me to create a HTML or PHP web based form to collect data and save that data. the call the data to be populated in a fillable pdf?
If you have an existing PDF that you want to populate, and that PDF just has text fields (no checkboxes or radio buttons) then CAM::PDF may be able to help you. You can use it as a Perl library directly, or use its command-line interface. CAM::PDF is not useful for generating PDFs from scratch, however. Furthermore, if you have embedded fonts, then you need to ensure that all of the characters you plan to insert are represented in the embedded font.
Use a normal web page to get the data. If not sure how to do it, look for "php forms" on google, there are plenty of tutorials.
Then use a php pdf generator, like this one, to create the PDF file. If you look hard enough, you will probably find a pdf generator that will let you use a template with placeholders where the entered data should be.