Inline PDF in DDX
I need to send PDF Base64 encoded inline with the DDX that I'm sending to Assembler. Any idea how to accomplish that ?
I have tried the following, but I get the following error
The input BLOB object should have attachmentID, remoteURL, or binaryData field specified.
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<PDF result="File:///\\share\readonly_2.pdf" encryption="limit">
<PDF>
<ser:binaryData>
PENvcnJlc3BvbmRhbmNlPg0KCTxEb2N1bWVudFBhcmFtcz4NCgkJPExhbmd1YWdlPjE8L0xhbmd1YWdlPg0KCQk8Q 2FzZU5vPjc4LzM0MDQyMzY8L0Nhc2V
snip...
</ser:binaryData>
</PDF>
</PDF>
<PasswordEncryptionProfile name="limit" compatibilityLevel="Acrobat5">
<Permissions copy="No" edit="No" print="No" screenReading="No">
<MasterPassword>mySecret</MasterPassword>
</Permissions>
</PasswordEncryptionProfile>
</DDX>
Not sure why/how you specify the source PDF content along the DDX, may be you should have a look at this example : 4D+Flex+LiveCycle: Using LiveCycle Assembler to Create a PDF Portfolio via Webservices
-Wasil
Similar Messages
-
How to get the number of pages when assemble pdf with DDX
Hi,
I have tried to add two bookmarks to one pdf with DDX(in java code),
the first bookmark I shall add to the first page,and the second I shall add to the second page....
the question is:
If the pdf has only one page, I will not add bookmarks to the pdf. so I need to get the pages of pdf before my processing.
but I did not found any APIs in the SDK about it .
Can anyone help me.
thanks.I have solve the problem myself
I use the tag "DocumentInformation" in DDX and get the xml after invoking DDX,
the xml contain the information of document
the sample DDX as:
<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/">
<DocumentInformation source="mergedPDF" result="doc_info.xml" />
</DDX> -
CF9 - display binary from database as inline PDF
Hello, everyone.
Is it possible to get binary data from C/BLOB and display it as an inline PDF? Not to download, just embed it in HTML/CFML?
Thank you,
^_^You should be able to have it download using cfheader
<!--- USES THE VARIABLE DEFINED ABOVE TO CREATE THE PDF USING CF TAGS --->
<cfheader name="Content-Disposition" value="inline; filename=Test.pdf">
<cfdocument format="pdf">
<cfoutput>
#tobase64(myquery.PDFhtml)#
</cfoutput>
</cfdocument> -
Disable inline pdf in 5.1
When using Safari 5.0 and previous, you could simply disable the Inline PDF Viewer and open in Adobe by going to your terminal and typing:
defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES
This option no longer works in 5.1?
Is there a way to disable in 5.1?A number of discussions have not yet found a solution to this - as of the moment there is no way to disable inline browsing. You can still however manually download the file by 'Save Link As...' (or similar through contextual menu).
-
Cannot create 'download' page for inline PDF viewing with IE
Description of Problem:
Typically, when you want to transfer a file to the client via code (cuz the
file is in a db, for example), you create a page that will change the
response headers and then spit out the file for them to download.
This works, however something with the response headers make it so IE does
not display a PDF if the 'Display PDF in browser' is turned on in the
Acrobat Reader. The page loads, but is blank.
code:
response.setContentType("application/pdf"); //this works well
response.setHeader("Content-disposition","inline; filename=" +"report.pdf" );
response.setContentType("application/pdf;charset=GB2312"); // can't work
response.setHeader("Content-disposition","inline; filename=" +"report.pdf" );
when response header containt national char
must set "useResponseCTForHeaders = true" in sun-web.xml and must use setContentType charset =XXX
Actual Results:
A blank page is shown
Expected Results:
The PDF is shown in the browser using the acrobat reader plugin.
How often does this happen?
Every timehi kglad
thanks for the help im almost there but still not getting it
so currently my code is set up for an action over a button
using
on (release) {
getURL("www.mysite.com/my.mp3","_blank");
so do I keep the on(release and then add in the on (release)
then add in which part of the filereference class??
import flash.net.FileReference;
var listener:Object = new Object();
listener.onSelect = function(file:FileReference):Void {
trace("onSelect: " + file.name);
listener.onCancel = function(file:FileReference):Void {
trace("onCancel");
listener.onOpen = function(file:FileReference):Void {
trace("onOpen: " + file.name);
listener.onProgress = function(file:FileReference,
bytesLoaded:Number, bytesTotal:Number):Void {
trace("onProgress with bytesLoaded: " + bytesLoaded + "
bytesTotal: " + bytesTotal);
listener.onComplete = function(file:FileReference):Void {
trace("onComplete: " + file.name);
listener.onIOError = function(file:FileReference):Void {
trace("onIOError: " + file.name);
thanks a lot for your help!
var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
var url:String = "
http://www.macromedia.com/platform/whitepapers/platform_overview.pdf";
if(!fileRef.download(url, "FlashPlatform.pdf")) {
trace("dialog box failed to open.");
} -
Create a PDF with DDX that can be converted to PCL by generatePrintedOutput
Hi all,
I have a scenario that puzzles me a bit.
I have some forms that are Interactive forms (stored as XDP with the property Dynamic XML Form).
I need to assemble these xdp-forms (and fill them with data) and add it all up in one PDF. This PDf should be converted to PCL and later shipped off to a printer. However I see a conflict in doing this by using the Invoke DDX and generatePrintedOutput services.
I can easily create my PDF, but to make it work I have to include the <NoForms> tag in my DDX. However when I do this I end up with a non xfa-based PDF. When I try to pass this to the generatePrintedOutput service it complains that the form is not XFA-based.
If I then remove my <NoForms> tag from my DDX I get the error from Assembler telling me that "the baseDocument cannot be assembled becasuse it is an XFA-based form".
What am I doing wrong? Could you elaborate a little on the behavior of these two services.
I have found the link to the documentation on page 38 in http://help.adobe.com/en_US/livecycle/9.0/ddxRef.pdf, however I don't think it tells me what is wrong.
Please advice
Thanks in advance
Kim Christensen
Dafolo A/S
DenmarkOpen in PS and print to the Adobe PDF printer. However, a 448MB TIFF seems huge. At 200 dpi and 24 bit color (millions of colors) that leaves you with a 61inX61in graphic. Even at 600dpi, that is 20X20.
For us to help you, please indicate exactly how you are trying to convert from PhotoShop. For Acrobat, are you trying to open the TIFF in Acrobat directly? Is the TIFF a single sheet, or multiple sheet? There are a lot of unanswered questions for us.
One of the limitations on file size is the size of the temporary PS file that is created in the PDF creation process. This PS file is created in the TEMP folder that is limited by MS. So you might try emptying the TEMP folder. -
Anyone else having issues recently with DDX calls that seem to return corrupted text from recent PDF files. Coincidentally, Firefox 26 renders the same same document incorrectly.
AFC[email protected] wrote:
> 1. can anyone send me an example of a simple DDX file (e.g. edding a comment) and how should i use it in order to edit an existing PDF file.
> 2. where can i find the full API\ SDK of this product?
Look in the installation directory where you installed Assembler. You should see a 'Documentation'
folder. In it are two documents that you'll need: developer_guide.pdf and ddx_reference.pdf.
Justin Klei
Cardinal Solutions Group
www.cardinalsolutions.com -
Disabling inline pdf view in safari
Hi All,
I am running Safari 1.3.1 on 10.3.9.
Everytime I click on a link to a pdf file, safari opens it in a browser window, showing only the first page of the file. ctrl-click, cmd-click and opt-click all so not seem to have any effect.
I read on forums that you can disable inline view using:
defaults write com.apple.Safari WebKitOmitPDFSupport -bool YES
in terminal, but this did not work for me.
Any ideas?
cheers,
KLThis worked for me, but you do have to restart Safari first before the changes take effect. You can find information about this fix
here
MacBook Pro Mac OS X (10.4.5) -
How do I prevent Acrobat XI Pro from seizing control of inline pdf files in Safari?
I prefer to view pdf files in Preview, but Acrobat rudely grabs control of the pdf functionality in Mac Safari. In the initial screen I choose NO when Acrobat asked if I wanted to use it for viewing browser pdf files, but it paid me no mind.
There is no Acrobat plug-in installed in Library > Internet Plug-Ins, and can find nothing in Safari or Acrobat prefs to allow me to prevent this.
I do not like wasting my life with such nonsense.[Moved the discussion to Creating, Editing & Exporting PDFs Forum]
-
IPhone browser won't open an inline PDF
I receive notices from the federal court Pacer system (http://www.pacer.gov/) that include a single-use link to download a PDF of a given court filing. On a computer, I am able to view and save the PDF. But on my iPhone (and iPad) I can only see the first page and a third as an image.
Well, as I explained, I'm launching a Flash Projector file with a button that opens the PDF. I'd always understood that the only way to launch a PDF from Projector on a CD was to use getURL, which launches a browser. If there's some other way I'd love to know.
I too get the security question of Block, Allow or Cancel but nothing happens when I click allow. No error message and certainly no PDF popping up. The links are correct because when I open the PDF directly it works, it's only when the PDF is open in a browser that it doesn't. I can open other PDFs in a browser with fully pathed URLs to PDFs on web sites and they work, it's only linking to a relatively pathed file on the CD that doesn't. -
Inline XML Publisher PDF rendered using IFRAME in Self Service
Hi,
We have created an XML Publisher Report (PDF) which renders inline in a SelfService Page.
When we click on the Save Icon in the IFRAME, The File Name is really long including the Applications URL, DBC File, File Name etc.
Ex: http___it21.marvell.com_8005_OA_HTML_xdo_doc_display.jsp_dbcName=it21_devt&fileName=MVL_HR_EMP_APPRAISAL_DETAIL-1163094244_out.pdf.pdf&mFileLength=50068&p_output=_devt_prod_prodcomn_html_fwk_t_MVL_HR_EMP_APPRAISAL_DETAIL-1163094244_out.pdf
The requirement is to change the File Name to PerformanceAppraisal.pdf
Below is the code used to render the inline PDF.
- The XMLString has the complete XML generated.
public void renderInlinePDF(OAPageContext pageContext, OAWebBean webBean, OAApplicationModule am, String XMLString, String templateName)
System.out.println("---MVLReviewPerformanceXMLUtil.renderInlinePDF----------------- XMLString "+ XMLString);
System.out.println("---MVLReviewPerformanceXMLUtil.renderInlinePDF----------------- templateName "+ templateName);
BlobDomain xmlData = new BlobDomain(XMLString.getBytes() );
pageContext.writeDiagnostics(pageContext, "------------- xmlData : "+xmlData.toString(), 4);
pageContext.writeDiagnostics(pageContext, "------------------------------------------------------------------- ", 4);
String redirectURL = null;
try
pageContext.writeDiagnostics(pageContext, "------------- redirectURL 1 : "+redirectURL, 4);
redirectURL = DocumentHelper.getOutputURL(
pageContext
,"XXGT"
,templateName
,xmlData.getBinaryStream()
,"PDF"
,null
,"en"
,"US"
pageContext.writeDiagnostics(pageContext, "------------- redirectURL 2 : "+redirectURL, 4);
System.out.println("---MVLReviewPerformanceXMLUtil---------------------------- redirectURL = "+ redirectURL);
catch(Exception e )
throw new OAException("Error in redirect");
OAHTMLWebBean frame=(OAHTMLWebBean)webBean.findChildRecursive("IFRAME");
pageContext.writeDiagnostics(pageContext, "------------- IFRAME is NULL"+frame, 4);
if (frame == null)
pageContext.writeDiagnostics(pageContext, "------------- IFRAME is NULL", 4);
OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean(pageContext,HTML_WEB_BEAN, null, "IFRAME");
outRegion.setHTMLAttributeValue("src",redirectURL);
outRegion.setHTMLAttributeValue("width", "100%");
outRegion.setHTMLAttributeValue("height", "100%");
outRegion.setHTMLAttributeValue("title","PerformanceReview");
outRegion.setHTMLAttributeValue("name","PerformanceReview");
OAWebBean iFramePlaceHolder = (OAWebBean) webBean.findChildRecursive("IFrameRegionPlaceHolder");
iFramePlaceHolder.addIndexedChild(outRegion);
// pageContext.getPageLayoutBean().addIndexedChild(outRegion);
pageContext.writeDiagnostics(pageContext, "------------- IFRAME AddIndexedChild", 4);
XML Publisher version 5.6.3
Any help in this regard will be highly appreciated.
Thanks,
SujayThanks Balusc!!
I have made use of your code to display PDF files in an IFRAME tag too!!! I just dint believe that this would be possible. Please just take a look at my JSP page.
<h:form id="CaseLookUp">
<%
String path = request.getContextPath()+"";
out.print(path);
%>
<iframe scrolling="auto" src="<%=path%>/imageServlet?file=D:\70-229 V5.pdf" width="80%" height="600" ></iframe>
</h:form> -
Safari no longer able to display PDFs inline?
When I visit a site in Safari that displays a PDF inline, Safari refuses to display it and downloads it instead. Anyone else having this problem? In Snow Leopard, Safari could display PDFs inline in the browser just fine...
AndySame problem here. As soon as I upgraded to OS X Lion, Safari now downloads PDF's and then launches the viewer. I always loved that Safari was able to view PDF's inline without having to download and launch an external viewer.
Hopefully Apple will fix this soon!
It's still listed as a feature of Safari 5.1 at http://www.apple.com/safari/features.html:
Inline PDF Viewing
Safari on the Mac comes with a built-in PDF engine, allowing you to quickly review PDF documents in Safari without having to install slow and cumbersome third-party plug-ins. The Safari PDF engine lets you zoom in and out and open PDFs in Preview or save them in your Downloads folder. -
Hello,
I'm trying to make my work computer as Mac-like as possible. But I can't seem to get Safari to display PDFs inline, the way it does on my Macs. They just download like data files.
Does Windows Safari not support inline PDFs? If it actually does, what can I do to make it work?
Could the installation of FoxIt Reader, which set itself as the default PDF reader, have affected Safari's settings? When I try to open a downloaded PDF in Safari through Open-File, even that doesn't work. I often have to view dozens of PDFs and it's a drag when they all download to my desktop.For the sake of Google, I should answer this.
So, Foxit reader's plugin does not work with Safari. Getting rid of that overrated program and adding Reader 8 did the trick.
Unfortunately, you do rely on Adobe for PDF viewing in Windows Safari. A very janky interface as compared with OS X, I have to say. -
We are creating PDF files with annotations, we are using the O2 Solutions PDF Library for C#. We used to create PDFStampAnnotations, but now we want to make the images clickable, to navigate to the URL belonging to the image.
Therefore, we are now using PDFLinkAnnotations, with a PDFImageAppearance.
We set the flags of the annotation to Print.
However, the annotation won't show in the PDF in Adobe Reader. It does show in the Google Chrome inline PDF viewer.
It also shows in the print preview window in Adobe Reader.
But it does not show in the normal view in Adobe Reader. What we do see is, when hovering over the rectangle that should contain our image, our mouse cursor becomes a hand and a tooltip with the link is displayed. If we click, everything works as expected. But we don't see an image!
What can we do about this? This is really annoying, as I don't have a clue why it won't work. Actually, to me, this looks like a bug in Adobe Reader?
Old (working, without link):
=================================================================================
15 0 obj
<</Contents (DEV-1)
/M (D:20130222103743+01'00')
/Subj (TigrisTag)
/Subtype /Stamp
/F 4
/Name /Custom
/AP <</D 16 0 R
/N 16 0 R
>>
/CreationDate (D:20130222103743+01'00')
/Rect [560.349976 10.000023 601.999977 51.650024 ]
/NM (97c87adc-5494-440a-b0b4-eb606e358169)
/T (name)
/P 4 0 R
/Type /Annot
>>
endobj
16 0 obj
<</Resources <</XObject <</ImageStamp 17 0 R
>>
/ProcSet [/PDF /Text /ImageB /ImageC ]
>>
/BBox [0 0 39.20008 39.20008 ]
/Name /Form_4943204746964B4C8B728A4CBD79B339
/FormType 1
/Length 41
/Src (XO:/Form_4943204746964B4C8B728A4CBD79B339)
/Type /XObject
/Subtype /Form
/Matrix [1 0 0 1 0 0 ]
>>
stream
39.2001 0 0 39.2001 0 0 cm
/ImageStamp Do
endstream
endobj
17 0 obj
<</Width 245
/ColorSpace [/Indexed /DeviceRGB 1 18 0 R ]
/BitsPerComponent 1
/Filter /FlateDecode
/Length 471
/Subtype /Image
/Height 245
>>
stream
(stream contents)
=================================================================================
New (not working, with link):
=================================================================================
18 0 obj
<</Resources 4 0 R
/Type /Page
/Group <</CS /DeviceRGB
/S /Transparency
/I true
>>
/Annots [19 0 R ]
/MediaBox [0 0 595 842 ]
/Contents 23 0 R
/Parent 3 0 R
>>
endobj
19 0 obj
<</Contents (TigrisTag)
/A <</S /URI
/URI (http://localhost:50830/publications/code/DEV-8)
>>
/M (D:20130225170939+01'00')
/Subtype /Link
/F 4
/NM (6a41409d-b8fb-44b6-8a7c-ab1c73088869)
/Name /Image
/AP <</D 20 0 R
/N 20 0 R
>>
/Rect [544.506958 9.999985 585.000015 50.493042 ]
/BS <</W 0
>>
/CreationDate (D:20130225170939+01'00')
/H /I
/P 18 0 R
/Type /Annot
>>
endobj
20 0 obj
<</Resources <</XObject <</ImageStamp 21 0 R
>>
/ProcSet [/PDF /Text /ImageB /ImageC ]
>>
/BBox [0 0 39.20008 39.20008 ]
/Name /Form_119A6CEBB1C8452D962814D585C640CC
/FormType 1
/Length 41
/Src (XO:/Form_119A6CEBB1C8452D962814D585C640CC)
/Type /XObject
/Subtype /Form
/Matrix [1 0 0 1 0 0 ]
>>
stream
39.2001 0 0 39.2001 0 0 cm
/ImageStamp Do
endstream
endobj
21 0 obj
<</Width 245
/ColorSpace [/Indexed /DeviceRGB 1 22 0 R ]
/BitsPerComponent 1
/Filter /FlateDecode
/Length 467
/Subtype /Image
/Height 245
>>
stream
(stream)
endstream
endobj
=================================================================================Thank you for your reply.
Indeed, I tried saving a PDF that had the "default appearance", it shows exactly the same. So it looks like it "can't" show the image.
However, of course, I do want the image to be shown. How can I achieve this? How can I tell Adobe Reader (and other PDF viewers) I really really realllyyyyy want to see that image there? I believe I'm not doing anything really exotic, right? There must have been tons of other people that wanted to do the same thing, I guess?
var annotation = new PDFLinkAnnotation
Action = new PDFUriAction(this.GetCodeUrl(code)),
Contents = AnnotationIdentifier,
Appearance = new PDFImageAppearance(bitmapImage),
DisplayRectangle =
new DisplayRectangle(
barcodeLocationInfo.X,
barcodeLocationInfo.Y,
barcodeLocationInfo.Tsw,
barcodeLocationInfo.Tsh),
Flags = Flags
pdfPage.Annotations.Add(annotation); -
The new pdf preview feature in firefox desktop does NOT seem to activate any links (urls) inside the pdf meaning they are no longer clickable.
Is anyone else experiencing this problem.
I send out product information using pdf's with clickable links inside (as do lots of businesses) and this loss of clickable links functionality is a problem.
I also tried the same pdf files in IE and Chrome and their inline pdf previews keep all links fully working.
I know the pdf preview in firefox can be deactivated and the adobe reader can be used instead but in reality lots of people won't know how to do this or won't be troubled to find out how and will just move on.
Does anyone know if this feature is going to be fixed or supported or is it a deliberate security feature.
Thanks.
JP.Hey JPEdwards,
The PDF.js team is still hard at work on the built-in viewer. It looks like there is already a bug on file for this and they are aware of it:
https://bugzilla.mozilla.org/show_bug.cgi?id=821599
Please don't post in the bug if you are just confirming that you've seen the problem too. That clutters the tickets ;)
Maybe you are looking for
-
SapGui Front end Remote installation Problem
I use Sap Installation Server V8.1.0.153 (Compilation 4) I try to instal a SapGui to remote PC. Remote -> Execute process Remotely -->Enter PC HostName (ex. C18140) --> Enter Application Name (ex. d:\sap_inst\Setup\NwSapSetup.exe /Silent /Product=
-
HT201317 How do I include all photos in photo stream on Apple TV?
I can only see photo stream photos as of march 19, but I have them from a year ago. How do I get them to photo stream on my Apple TV? They are on my iPad under photo stream
-
Hi! I've been using Goldmine contact management software for many years and syncing with Companion Link successfully, then ITunes to the IPhone. Suddenly, my IPhone is not recognized and won't sync. I see a message telling me to dock the phone? Any i
-
Use of DBlookup API and find particular receiver
Hi all, The scenario is : soap req -> XI -> req to external database -> resoponse from db to XI -> BAPI request -> response from BAPI to XI -> send response to SOAP Response I found that DBlookup API (User defined function to get data from External D
-
Why can i no longer drag and drop photos into iphoto or on desktop?
This has only happened this week, before this I was able to drag any photo from any website and add it to either my iphoto or desktop. Now I cant do this, and I cant transfer from iphoto to desktop or vice versa either. Ive tried turning off iphoto a