How to see XFA forms in i-Pad? - ipad

I would like to develop an interactive XFA form in LiveCycle Designer ES -2 which will support Windows as well as i-Pad. But the problem is when I open an XFA form it does not show the form rather it shows the form can not be shown(If the form has scripts within it).It only shows simple PDF documents in read only format.It also does not show the button in Acroforms.There is no interactivity related with the form.I would like to know is there any way to show the interactive PDf forms?

There is also another solution from SPZAP designed for Microsoft SharePoint and supporting XFA forms in PDFs and in some way in HTML5 compliant browsers. It has a form designer that runs in a browser (html5) and two kinds of runtime that are SharePoint integrated and are displaying PDF either in Adobe Acrobat Reader (probably Foxit in future) or converted as html5 structure (with some limitations in latter case). http://www.pdfsharepoint.com

LiveCycle Mobile ES4.0 will be able to render your forms. The look will be similar to HTML rendering.
http://www.adobe.com/products/livecycle/mobile/

The built-in pdf reader doesn't support dynamic PDF forms, Adobe doesn't have an iOS client and iPad doesn't support flash (natively).
Your only option is to render the form as HTML using LiveCycle Forms ES (server module).

You cannot render an interactive form in iPad as pdf. Reason being Apple doesn't allow any application (except web browser) to run any kind of scripts inside it (In this case Acrobat application, trying to run Javascript).
But you can render it as HTML which can be rendered in a browser and has some strip out functionality than the pdf version but its worth to try.

Related

Apple PDFKit - issue with PDFs with validation scripts.

I have a set of PDF files which have a few validations embedded into it using JavaScript. Validations like a date or time format, total getting calculated from various fields etc.
I have tested these PDF and they work good on Mac Chrome browser, on Windows Chrome browser, Windows Adobe Reader and on iPad Adobe Reader. However, same does not work on iPad when using Apple PDFKit to render the PDF in a PDFView. It does not validate, format any of the fields or give a popup validation error how it does in the iPad Adobe Reader App. For testing purpose, I am keeping this pdf in the applications and accessing it directly from there.
Is it possible to get the same functionality as the iPad Adobe Reader App where we get validation errors/popup when something is incorrect?
I found that the built in PDF viewer in iOS is very limited, it can't run JavaScript, probably for security purposes.
For a recent project we used Foxit's PDF SDK for iOS, I believe it has its own JS engine so it will run all of the scripts in your PDF.

Can not generate _blank links on PDF via pdfkit on rails app

I have a rails app that generates a pdf for a given html partial. In the partial I have a number of links that have a target of _blank, however in the generated PDF the target looks like it is being ignored.
I just want the pdf to open links in a new tab/window.
A collaborators from PDFKIT said
"This sounds like a problem with wkhtmltopdf (which is what renders the pdf from the html). (Pdfkit just wires up everything between ruby/rails and that binary.)"
Any help would be appreciated.
Regards,
Sean Hubers Answer:
PDFs are not marked up with HTML. How a link click is handled in a PDF
depends on the PDF viewer you are using. Modern browsers with built-in
PDF viewers may navigate to the page within the same frame as the PDF
view and that is not something that can be controlled with an HTML
element attribute. What happens if your link is clicked when the PDF
is being viewed in Adobe Acrobat or Mac Preview? You're at the whim of
the software and operating system. Sorry to bear the bad news but this
is the reality of the PDF format.

How to stop automatic download on IE 11 while using iframe

I have given a source in a Iframe tag, my is issue is that when the page loads on IE the download begins automatically and it generally happens on IE installed on windows 8.
<div> <iframe src="../../Images/Sample.pdf" width="800px" height="800px" ></iframe> </div>
It's downloaded probably because there is not Adobe Reader plug-in
installed. In this case IE (it doesn't matter which version) doesn't
know how to render it and it'll simply download file (Chrome, for
example, has its own embedded PDF renderer).
That said. is not best way to display a PDF (do not forget
compatibility with mobile browsers, for example Safari). Some browsers
will always open that file inside an external application (or in
another browser window). Best and most compatible way I found is a
little bit tricky but works on all browsers I tried (even pretty
outdated):
Keep your but do not display a PDF inside it, it'll be filled
with an HTML page that consists of an tag. Create an HTML
wrapping page for your PDF, it should look like this:
<html>
<body>
<object data="your_url_to_pdf" type="application/pdf">
<embed src="your_url_to_pdf" type="application/pdf" />
</object>
</body>
</html>
Of course you still need the appropriate plug-in installed in the
browser. Also take a look to this post if you need to support Safari
on mobile devices.
1st. Why nesting inside ? You'll find answer here on
SO. Instead of nested tag you may even provide a custom
message for your users (or a built-in viewer, see next paragraph).
2nd. Why an HTML page? So you can provide a fallback if PDF viewer
isn't supported. Internal viewer, plain HTML error messages/options
and so on...
It's tricky to check PDF support so you may provide an alternate
viewer for your customers, take a look to PDF.JS project, it's pretty
good but rendering quality - for desktop browsers - isn't as good as a
native PDF renderer (I didn't see any difference in mobile browsers
because of screen size, I suppose).
See also: HTML embedded PDF iframe

Loading/launching activex control using NPAPI

I have a mozilla browser(this browser is developed for windows based mobile handsets).I have used NP plugin for rendering flash content on my browser.There are NPAPIs which can be used for controlling the flash window properties.I have used NPAPIs for getting the flash contents from the browser and rendering it on the browser.
Now I want to launch activeX control using the NPAPI.This is required for rendering flash in wince platform which uses activeX to render flash content on nay web page.Does any one know how to launch an activeX control using NPAPI so that the NPPlugin which is implemented for windows phone also works on wince platform.
Thanks in advance,
Snehal
Check out: http://code.google.com/p/ff-activex-host/
Most APIs probably work the same on WinCE, but you'll have to do some tweaking, I'm sure.

sIFR error when capturing page in Acrobat 9.1.2

When using Adobe Acrobat Standard 9.1.2 and its built in Web site grabber, I end up with the following error in the PDF, “Rendered with sIFR 3, revision 436."
Is there a way to force Acrobat to render the plain text instead of the flash test? Or a way to make sIFR compatible with the Acrobat site grabber?
Note the site displays fine in Firefox 3.5 and IE7. Other forum posts have indicated this sort of error in a browser indicates a mismatch in sIFR and javascript versions.
I'm unfamiliar with the way Acrobat captures web pages, but it sounds like it's trying to capture (or embed, who knows) the Flash movie directly, and failing. You might be able to detect Acrobat through a user agent string, and disable sIFR if it's looking at the page, but otherwise I'd consider this an Acrobat issue.

Resources