Oracle PL/SQL or JavaScript Interaction with a PDF Document
I'm new to LiveCycle - be gentle. . . :-)
My department is attempting to develop a web application which will, among other things, generate fixed layout forms filled with data from the database or from an application web page. The web pages for this application will be served via stored procedures from an Oracle database through a dedicated web server - that is, the web pages are actually contained within stored procedures called by the browser through the web server (we're sort of an odd-ball shop, serving pages this way, but Oracle does lend itself well to this technique). We are exploring the feasibility of using LiveCycle to design the fixed layout forms without having to form a connection to the database from within the document or PDF viewer. We are currently using Crystal Reports to generate forms or reports but we are trying to get away from it due to implementation difficulties, dependability and connection issues and the fact that a license for a Crystal Reports viewer must be purchased for everyone who needs to view the reports.
Is it possible to add a JavaScript snippet to an existing PDF form template from within an Oracle stored procedure to accomplish this (this appears to be the simplest solution to me)? The solution can be either PL/SQL or JavaScript based. Barring that, is it possible to merge data into PDF form fields before the document is sent to the browser?
After several hours of searching through Google in general and the Adobe forums in particular, the closest possibilities I can find is XPAAJ or maybe the LiveCycle PDF Generator service that comes with LiveCycle - I'll be researching those approaches to determine their feasibility. In the meantime, suggestions for simpler approaches would be welcome. Thanks in advance.
Woody
A quick glance at PDF Generator shows that it doesn't handle document access, only document conversion. XPAAJ looks promising, but appears to require Java programming knowledge to utilize it - we're not a Java shop. I'll investigate further, see if the XPAAJ interface is available to other languages.
Similar Messages
-
Hi,
I have an issue with some PDF documents & some MS Office documents, notably MS Word when received in eMail as attachments not displaying properly on iPhones, iPad 2s & new iPads?
PDF docs - areas of the doc only show as grey splotches regardles of viewer
MS Word Docs -
inserted graphics don't display at all,
tables & lists especially with borders are broken &
tables & lists missing the borders &
tables & lists missing the 1st 1-2 lines of the lists/tables.
This is replicated on iPhone 4s, iPhone 4Ss, iPad 2s, iPad new (x2)
It certainly happens in iOS 5.1.1 & iOS 5.1
We believe it all worked aok in iOS 5.0.1(?) & prior
There is no problems reading/seeing these PDF & Word docs on anything other than iDevices.
This is rather critical for us & if not quickly fixed/rectified will prevent us from further purchases of these devices
Rolling back to iOS 5.0.1 or prior I believe isn't possible because of the BaseBand update(?) & isn't much of an option because of the quite noticeable Battery/Charging/WiFi improvements in 5.1 & 5.1.1Hi,
I logged a call with AppleCare & have since had explained why this occurs (some time ago)
I'll try to explain what was indicated to me.
iOS has a limited Font Set & this affects what PDFs can display. You need to use iOS supported fonts in your PDFs to see/read them properly
These supported fonts are indicated here => http://support.apple.com/kb/HT4980
Regards MS office docs, iOS doesn't have much of an API to work with MS Office documents at all so is stuck with 3rd Party Apps to try to do it.
Unfortunately Mail in/on iOS uses the API to attempt to open/use MS Office attachments unless you tell it to use an App to open the attachment.
I have had success opening & reading MS office docs now with CloudOn, but find it slow & very awkward to use.
Not too sure if this helps others, but at least it explains why this is occurring -
Using Oracle Text to search through WORD, EXCEL and PDF documents
Hello again,
What I would like to know is if I have a WORD or PDF document stored in a table. Is it possible to use Oracle Text to search through the actual WORD or PDF document?
Thanks
DougYes you can do context sensitive searches on both PDF and Word docs. With the PDF you need to make sure they are text and not images. Some scanners will create PDFs that are nothing more than images of document.
Below is code sample that I made some time back to demonstrate the searching capabilities of Oracle Text. Note that the example makes use of the inso_filter that is no longer shipped with Oracle begging with Patch set 10.1.0.4. See metalink note 298017.1 for the changes. See the following link for more information on developing with Oracle Text.
http://download-west.oracle.com/docs/cd/B14117_01/text.101/b10729/toc.htm
begin example.
-- The following needs to be executed
-- as sys.
DROP DIRECTORY docs_dir;
CREATE OR REPLACE DIRECTORY docs_dir
AS 'C:\sql\oracle_text\documents';
GRANT READ ON DIRECTORY docs_dir TO text;
-- End sys ran SQL
DROP TABLE db_docs CASCADE CONSTRAINTS PURGE;
CREATE TABLE db_docs (
id NUMBER,
format VARCHAR2(10),
location VARCHAR2(50),
document BLOB,
CONSTRAINT i_db_docs_p PRIMARY KEY(id)
-- Several notes need to be made about this anonymous block.
-- First the 'DOCS_DIR' parameter is a directory object name.
-- This directory object name must be in upper case.
DECLARE
f_lob BFILE;
b_lob BLOB;
document_name VARCHAR2(50);
BEGIN
document_name := 'externaltables.doc';
INSERT INTO db_docs
VALUES (1, 'binary', 'C:\sql\oracle_text\documents\externaltables.doc', empty_blob())
RETURN document INTO b_lob;
f_lob := BFILENAME('DOCS_DIR', document_name);
DBMS_LOB.FILEOPEN(f_lob, DBMS_LOB.FILE_READONLY);
DBMS_LOB.LOADFROMFILE(b_lob, f_lob, DBMS_LOB.GETLENGTH(f_lob));
DBMS_LOB.FILECLOSE(f_lob);
COMMIT;
END;
-- build the index
-- Note that this index differs than the file system stored file
-- in that paramter datastore is ctxsys.defautl_datastore and not
-- ctxsys.file_datastore. FILE_DATASTORE is for documents that
-- exist on the file system. DEFAULT_DATASTORE is for documents
-- that are stored in the column.
create index db_docs_ctx on db_docs(document)
indextype is ctxsys.context
parameters (
'datastore ctxsys.default_datastore
filter ctxsys.inso_filter
format column format');
--search for something that is known to not be in the document.
SELECT SCORE(1), id, location
FROM db_docs
WHERE CONTAINS(document, 'Jenkinson', 1) > 0;
--search for something that is known to be in the document.
SELECT SCORE(1), id, location
FROM db_docs
WHERE CONTAINS(document, 'Albright', 1) > 0; -
Display interactive form as pdf document using LinkToURL UI
Hi Experts
I have an interactive form but I need to display as pdf document with a link. I tried to get the url:
String templateUrl =
WDURLGenerator.getWebResourceUrl(
wdComponentAPI.getDeployableObjectPart(),
"WDV_ARC_PDF_InteractiveFormMercantil.xdp");
And modified the 'reference' property of 'LinkToURL' with this String.
Please help meWebDynpro Java
I need to display an interactive form like a pdf document, away the portal. Similar when you try to open a pdf document, appers the pop up window with the opcions: Open, Save ...
Thanks -
How to get Font's associated with a pdf document.
Hi All,
I am currently working on a project related to Document Management in SAP. For this I have a set of pdf document's that needs to be classified as 'searchable' and 'Non-searchable'. I am planning to identify the document based on Font contents i.e a searchable document has some font associated with it, and non-searchable documents do not have any font associated with it.
I am trying to use the class cl_fp_pdf_object and get the information about font. I see that there is no function which gives me this information directly. Is there any way to get font information of a pdf documents using classes ? or Is there any way to identify directly weather a document is searchable or not ? Please help.
DATA: l_fp TYPE REF TO if_fp,
l_pdfobj TYPE REF TO if_fp_pdf_object.
Create PDF Object.
l_pdfobj = l_fp->create_pdf_object( connection = p_dest ).
Set document.
l_pdfobj->set_document( pdfdata = l_pdf ).
Set task to get metadata.
l_pdfobj->set_task_getmetadata( ).
Execute, call ADS.
l_pdfobj->execute( ).
Thanks
AdityaJust curious....why would you make "font" the basis of that classification?
-
Problem with linking PDF documents using named destinations
Linking from one PDF document to another PDF document using named destinations viewed in Reader works great but once the documents are viewed inside a browser environment the link will only open the go to document and will not go to the named destination.
If I make the links using the page number - yes they will work perfectly in the browser. But my problem is that the documents may change in the future and the links may be on differnt pages, so I need to use named destinations to bring me to the page of the PDF they are on.
Any suggestions? I need them to work in IE.
ThanksYou can link to a named destination with a URL. This might work better in
your case... To do it use the following format:
http://example.org/doc.pdf#nameddest=Chapter6 -
Please Help with Converting PDF document to Word Document
I have downloaded our PDF document to be converted to a word document --- it did not work correctly--we need help with this
Scott Munsen
Abbott House -- Mitchell, SDGood day Scott,
I received your document via our File Conversion Issue form. The root of the problem you're facing is the quality of the scan. I'm not sure if you were starting with a poor quality hard-copy or simply low DPI settings on your scanner, but the reason the results you received were so different than the PDF was the quality of the input.
If you're hard copy looks clearer than the PDF file you created, I would suggest increasing the resolution settings on your scanner.
Please let me know if you have any questions.
Kind regards,
David -
HT2506 "Find next" with a PDF document
I would like to use the "Find next string" of a PDF document with Preview.
When i fill the search window, Preview does the search on the entire document, and shows the first occurence it has found. Thus, making me loose my current reading page.
I just want to do a forward search !
Thank youUse Adobe Reader - http://get.adobe.com/reader/.
Preview is just horrible, to my way of thinking and working, with PDF files.
Clinton -
Sudden printing problems with scanned pdf documents
Hi, I suddenly experience problems when I want to print scanned pdf documents.
Since 2 years, I am using an iMac with a Fujitsu ScanSnap S1500M and a Samsung ML-2525W. I also use Acrobat Pro 9.0 provided with the scanner. I scan documents, save them as pdfs and print them. Worked fine until just recently. If I print scanned pdf documents, the printer give white pages. Other pdf documents get printed without problems.
I use OS X Yosemite (10.10.1) and ScanSnap Manager 3.2.L63.
Any advice is highly appreciatedHi Roger - the problem was going from 10.6.7 to 10.6.8. That is when all of the printing problems began, as well as the wifi getting flaky. I was able to get the iMac speaking politely to the printer by installing Repair 10.6.8 and re-adding the Canon printer (see below):
Printer “failure”
Probably the single most common 10.6.8 problem, at least as evidenced by a massive 17 page thread in Apple Support Communities, is a failure to print. The typical symptom is that the printer driver software pauses, displaying a message that states something like: “printer-state-message="/usr/libexec/cups/backend/lpd failed" or “/usr/libexec/cups/backend/dnssd failed.” Not all printers have this problem, but users report seeing the symptom in a variety of different printers.
As is often the case with update-related problems, reinstalling 10.6.8 from the combo updater may eradicate the symptom. Another possible solution is modifying a printer file in the /etc/cups/ppd directory (as detailed in the above-linked thread).
Unfortunately, none of these solutions are guaranteed to work. What does reliably fix the problem is to downgrade back to 10.6.7. If you’d rather stick with 10.6.8, you can instead downgrade just the quartet of printer-related files that appear to be the root cause of the symptom. These are the socket, dnssd, lpd and ipp files, located in the /usr/libexec/cups/backend directory.
A Mac user wrote an application, Repair10.6.8 (direct download link), that automatically downgrades these four files for you. Several users report success with this program. After running the Repair app, you may also need to “reset printing system” by selecting the command from the contextual menu for the printer name in the Print & Fax System Preferences pane.
from MacUser 10.6.8. workaround articlehttp://www.macworld.com/article/160993/2011/07/1068_bugs.html#lsrc.nl_mwweek_t_c bstories -
HTML/javascript interaction with swf content - can I call swf functions from JS?
Hi,
I've created an AIR application where the
intialWindow.content is a HTML page / JavaScript application. On
this HTML page I want to include some SWF content as a plugin (a
Flex 3 app), so I have an object tag.
From my SWF I can call out to JavaScript using
flash.external.ExternalInterface fine. I can also call methods
within the AIR and Flex APIs via the window or runtime objects.
However, if I try to call methods within my SWF from
JavaScript, nothing happens. Further, I can pass a function
reference from my SWF to JavaScript (via ExternalInterface), and
while I can see a valid function reference in JavaScript, calling
it doesn't call the function within the SWF.
Is this not supported? Or is this something else, like an
applicationDomain issue? My SWF object is loaded via the app:/ uri,
so I didn't think it would be that.I hadn't tried that, and it does work. Thank you. Everyone
should note though that the documentation here
Flex
3 - External Interface
and
Flash
9 - ExternalInterface.html
says:
"Note: Adobe AIR currently does not support the
ExternalInterface class."
which by my reading means that none of this should work,
although it clearly does.
The page
Example:
Using the external API with a web page container was most
helpful in finding the solution, since it mentions referencing the
object id of the plugin (e.g.
window['my-object-id'].functionToCall()) when referencing the
callback function.
This
page has a more concise example. -
Help! How To Use Oracle as SQL for a Forum with Related Post
Hi All,
I added an SMF forum on my [Tech Blog|http://oscarmini.com] using the sub directory forum. Now I want to encode a fresh forum using Oracle for the database instead of the usual MySQL. I don't really know if this is possible. If it is, then let me know if their is a script for this, and so I can ask other related questions too.
But firstly, is it possible?I think Oracle have taken down all the sample applications.
As I recall it was quite controversial at the time. Supposedly they're upgrading them to the latest version of Apex - some of them were quite old - but obviously there's a gaping void in the meantime.
The official Oracle statement is [url http://www.oracle.com/technetwork/developer-tools/apex/application-express/packaged-apps-090453.html]here. It turns out they're not going to upgrade the apps but rewrite them entirely. So I predict the gaping void will last for some time yet :(
There's [url https://forums.oracle.com/forums/thread.jspa?threadID=2253686&start=0&tstart=0]a thread on the Apex forum which has a link to the Oracle Chinese website, which still has the samople apps, including the Discussion Forum. Download it (if you dare) from [url http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=auto&tl=en&u=http%3A%2F%2Fwww.oracle.com%2Ftechnetwork%2Fcn%2Fdeveloper-tools%2Fapex%2Fpackaged-apps-087541-zhs.html]here.
Cheers, APC
Edited by: APC on Apr 17, 2013 8:37 AM
Improved my Google Fu and resolved the doubts -
CF session - can javascript interact with it?
Hello, everyone.
Just wondering if JavaScript can manipulate a CF session variable?
I'm submitting a form via jQuery .post() method. Upon success or failure, I'd like to set a CF session variable (confirm or failure, respectively) and reload the page to display the message. Can this be done via JavaScript?
Thank you,
^_^WolfShade wrote:
Just wondering if JavaScript can manipulate a CF session variable?
If it could, then every user would be able to manipulate your application. If your application is a web store, for example, he will be able to change session.totalPrice from $1500.00 to $0.10.
I'm submitting a form via jQuery .post() method. Upon success or failure, I'd like to set a CF session variable (confirm or failure, respectively) and reload the page to display the message. Can this be done via JavaScript?
Yes. Infact, you've been doing that already! JQuery is Javascript. You could redesign the form page such that it is its own action page. That is, the form submits to its own page.
The page checks for the existence of form variables. If there are none, the form is displayed(the page default). If there are, then the form must have been submitted, and so form processing like validation, confirmation, etc., is done. -
Error with a PDF document in a BSP App: "File does not begin with '%PDF-'"
Hi All,
I have the following piece of in the layout of a BSP Application in our system.
<%
DATA: LV_PDFSIZE TYPE I,
LW_PDF TYPE TLINE,
LV_XDATA TYPE XSTRING.
data: LT_PDF type ZGTIS_TAB_TLINE,
lv_id type zgtis_http_id,
filename type STRING.
lv_id = session_id.
import lt_pdf to lt_pdf from
database zgtis_http_indx(in) id lv_id.
RUNTIME->SERVER->RESPONSE->SET_HEADER_FIELD(
NAME = 'Content-Type'
VALUE = 'application/pdf').
if w_printall ne 'X'.
CONCATENATE 'display; filename="invoice_' BIL_NUMBER '.pdf"' INTO filename.
else.
CONCATENATE 'display; filename="invoice_' 'ALL' '.pdf"' INTO filename.
endif.
RUNTIME->SERVER->RESPONSE->SET_HEADER_FIELD(
NAME = 'Content-Disposition'
VALUE = filename ).
RUNTIME->SERVER->RESPONSE->SET_HEADER_FIELD(
NAME = 'pragma'
VALUE = 'no-store').
RUNTIME->SERVER->RESPONSE->SET_HEADER_FIELD(
NAME = 'cache-control'
VALUE = 'no-store').
* Convert to XSTRING
FIELD-SYMBOLS <P> TYPE ANY.
LOOP AT LT_PDF INTO LW_PDF.
ASSIGN LW_PDF TO <P> CASTING TYPE X.
CONCATENATE LV_XDATA <P> INTO LV_XDATA
IN BYTE MODE.
ENDLOOP.
* Set the response data
RUNTIME->SERVER->RESPONSE->SET_DATA(
DATA = LV_XDATA ).
%>
This piece of code works fine when 'If w_printall ne 'X'.' condition is succesfull and I can see the PDF but when w_printall = 'X' I get the above error on a popup box, the error is "File does not begin with '%PDF-'" and I cant see the PDF.
Does anyone have any suggestions!
Kindly help.
Regards,
KarthikCheck this thread
it is a Big Discussion on that.
In first page and second page you can see solutions.
/thread/747643 [original link is broken]
one with patch and other with setting in Adobe.
Regards
Vijay babu Dudla -
Triggering a javascript by opening a pdf document
The title pretty much says it. I'd like to trigger a javascript (already in place) as soon as the pdf form opens, rather than having some mouse action required. The text field I'm triggering will display the date (read only) on an SOP form to simply date stamp the document. Any help will be greatly appreciated.
Just embed it in the PDF and it will launch when it is opened.
-
VBA to save an Excelfile as pdfdocument with a pdf document open password
I use VBA and Adobe Acrobat PDFMaker to save Excel-files as pdfs.
The code I use works perfectly (see below). Which VBA-command is
necessary to add a Document Open Password to the pdf to open the pdf-file?
thank you in advance and
best regards
gauss
Sub xls_to_pdf()
Dim member As Variant
pdfZähler = 0
dieseDatei = ThisWorkbook.Path & "\" & Left(ThisWorkbook.Name, Len(ThisWorkbook.Name) - 4)
drucker = "Adobe PDF"
Sheets("Frontpage").Select: drucken_mergen
Sheets("Final").Select
For Each member In Range("regionen")
Range("A1").Value = member
Application.Calculate
drucken_mergen
Next member
End Sub
Sub drucken_mergen()
'drucken
Dim AdobeDistiller As ACRODISTXLib.PdfDistiller
Set AdobeDistiller = New ACRODISTXLib.PdfDistiller
If pdfZähler = 0 Then
file(0) = dieseDatei
Else
file(pdfZähler) = dieseDatei & Format(pdfZähler, "0000")
End If
ActiveSheet.PrintOut copies:=1, preview:=False, _
ActivePrinter:=drucker, printtofile:=True, printtofile:=True, _
prtofilename:=file(pdfZähler) & ".ps"
AdobeDistiller.FileToPDF file(pdfZähler) & ".ps", file(pdfZähler) & ".pdf", ""
Kill file(pdfZähler) & ".log"
Kill file(pdfZähler) & ".ps"
'mergen
Dim pdfZiel As AcroPDDoc
Dim pdfQuelle As AcroPDDoc
Set pdfZiel = CreateObject("AcroExch.PDDoc")
Set pdfQuelle = CreateObject("AcroExch.PDDoc")
If pdfZähler = 0 Then
pdfZiel.Open (file(pdfZähler) & ".pdf")
Else
pdfZiel.Open (file(0) & ".pdf")
pdfQuelle.Open (file(pdfZähler) & ".pdf")
pdfZiel.InsertPages pdfZiel.GetNumPages - 1, _
pdfQuelle, 0, pdfQuelle.GetNumPages, True
pdfQuelle.Close
pdfZiel.Save 1, file(0) & ".pdf"
Kill file(pdfZähler) & ".pdf"
End If
pdfZähler = pdfZähler + 1
End SubDear Irosenth
thank you for your answer!
Maybe you are looking for
-
Transfer photos from PC to Mac - how to format ext hard drive?
Hi, I'd like to transfer jpegs from my old PC to my new Mac. I had already put my files on an external hard drive but when I plugged it into the Mac, it couldn't read it. I got a prompt to re-format it, which I did not do. From reading discussions he
-
400mhz g4, running 10.4.9 Hi. I've added a XRack Serial ATA/ATA133 PCI card to drop another hard drive into my little beastie. The XRack card says it supports Ultra ATA133/100/66 and SATA, as well as drives over 137gigs. The drive I've added is a WD
-
Creating Authorisation for a Transaction
Dear all, I am developing a 3 screens and a Tcode for these screen. I have been asked to set authorisation on these screens for certain users. how should I go about it. I need instructions on creating Profile and setting the profiles to those users.
-
Equium A60-199 randomly shutting down -could it be overheating issue
Hi I am posting on behalf of a friend who has been experiencing her A60 laptop shutting down unexpectedlly.. ( she said it shut down after a few mins or when she tried opening Firefox) Syst Details Toshiba Equium A60-199 Model No: PSA67E -00J00C8J 18
-
DV7-1279WM microphone and quick launch buttons stopped working
For some reason my quick launch buttons and microphone have stopped working on my DV7 laptop. I know that I recently used the microphone on a Skype call, but believe since that time that Vista SP2 was installed. I am not sure when the quick launch bu