Trying to save the data from the pdf into XML
I have Adobe Live Cycle 8.0 installed and without the blade for Reader Extension.
The objective is to save the editable data from the pdf into a XML file
the code for that is:
// to fetch the input pdf file from the local drive
FileInputStream fileInputStream2 = new FileInputStream("C:\\Adobe-Final PDF\\stitched_Letters.pdf");
Document inPDF = new Document(fileInputStream2);
Properties connectionProps=new Properties();
connectionProps.load(new FileInputStream(_propertiesPath));
//propertiesPath is the path of the properties file
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
FormDataIntegrationClient dataClient = new FormDataIntegrationClient(myFactory);
Document resultPDF=dataClient.exportData(inPDF);
What happens is that this ultimate resultPDF does not get the XML with data but rather with empty tags. Does this require Reader Extension?
//Set connection properties required to invoke LiveCycle ES
Properties connectionProps = new Properties();
connectionProps.setProperty("DSC_DEFAULT_EJB_ENDPOINT", "jnp://localhost:1099");
connectionProps.setProperty("DSC_TRANSPORT_PROTOCOL","EJB");
connectionProps.setProperty("DSC_SERVER_TYPE", "JBoss");
connectionProps.setProperty("DSC_CREDENTIAL_USERNAME", "administrator");
connectionProps.setProperty("DSC_CREDENTIAL_PASSWORD", "password");
//Create a ServiceClientFactory object
ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
//Create a FormDataIntegrationClient object
FormDataIntegrationClient dataClient = new FormDataIntegrationClient(myFactory);
//Reference a PDF form from which to export data
FileInputStream fileInputStream2 = new FileInputStream("C:\\Adobe\\Loan.pdf");
Document inputPDF = new Document(fileInputStream2);
//Export data from the form
Document resultPDF = dataClient.exportData(inputPDF);
//Save the exported form data as an XML file
File resultFile = new File("C:\\Adobe\\formData.xml");
resultPDF.copyToFile(resultFile);
}catch (Exception e) {
e.printStackTrace();
Similar Messages
-
How can i save the data from the Oracle database to my local directory
How can i save the data from the Oracle database to my local directory instead Of saving the data file to the Directory created on the Oracle Server ?
I require to design the Procedure which will pull the data from various tables and needs to store the data in the Client's local directory.Since SQL*PLUS runs on the client, you can use SQL*PLUS to spool data to your local drive.
You could also use the database to write a a specified drive where all users have access to (mapped network drive, e.g.). I wouldn't recommend doing it that way, but it is sometimes useful when the files are created in some nightly batch run. -
Is it possible to import less than ALL of the data from a PDF form developed on LiveCycle?
Is it possible to import less than ALL of the data from a PDF form developed on LiveCycle?
Please ask in the LiveCycle Designer forum.
-
I am trying to delete the data from the info cube.
Hi All,
i am trying to delete the data from the info cube.in cube reporting symbol is availble.when i click on delete button delete symbol is coming again when i click on refresh button request is not deleting .please give me solution .
Thanks,
chanduHi,
Also try to delete in Data Mart Status.
R u deleting particular request or the entire data in cube, if entire data then right click on Cube select Delete Data, it entirely deletes Data.
Hope it helps you...Let us know if you still have any issues.
Reg
Pra -
Unable to get the data from the stored procedure
Hello Folks,
I have this stored procedure and am trying to get the data from the table stage_bill but for some reason i am not sure its not pulling the data.Am a beginner in pl/sql Can any one please help to find out. I can give the code below.
create or replace procedure Load_FADM_Staging_Area_TEST(p_data_load_date date) is
-- local variables
v_start_date date;
v_end_date date;
-- cursor starting
CURSOR c_get_data
IS
SELECT
a.batch_id
,a.beginning_service_date
,a.bill_id
,a.bill_method
,a.bill_number
,a.bill_received_date
,a.bill_status
,a.bill_type
,a.change_oltp_by
,a.change_oltp_date
,a.client_datafeed_code
,a.client_id
,a.created_date
,a.date_of_incident
,a.date_paid
,a.deleted_oltp_by
,a.deleted_oltp_date
,a.duplicate_bill
,a.ending_service_date
,a.event_case_id
,a.event_id
,a.from_oltp_by
,a.oltp_bill_status
,a.review_status
,'HRI' schema_name
, sysdate Load_date
,'ETLPROCESS001' Load_user
,v_start_date as Row_Effective_Date
,null Row_End_date
from stage_bill a
where
--created_date >= to_date('20101031 235959', 'YYYYMMDD HH24MISS')
created_date >= v_start_date
and
--created_date <= to_date('20101111 235959', 'YYYYMMDD HH24MISS')
created_date <= v_end_date
and not exists
(select
b.batch_id
,b.beginning_service_date
,b.bill_id
,b.bill_method
,b.bill_number
,b.bill_received_date
,b.bill_status
,b.bill_type
,b.change_oltp_by
,b.change_oltp_date
,b.client_datafeed_code
,b.client_id
,b.created_date
,b.date_of_incident
,b.date_paid
,b.deleted_oltp_by
,b.deleted_oltp_date
,b.duplicate_bill
,b.ending_service_date
,b.event_case_id
,b.event_id
,b.from_oltp_by
,b.oltp_bill_status
,b.review_status,
b.schema_name,
b.Load_date,
b.Load_user,
b.Row_Effective_Date,
b.Row_End_Date
from STG_FADM_HRI_STAGE_BILL_TEST b)
-- cursor o/p variables
v_batch_id stage_bill.batch_id%TYPE;
v_beginning_service_date stage_bill.beginning_service_date%TYPE;
v_bill_id stage_bill.bill_id%TYPE;
v_bill_method stage_bill.bill_method%TYPE;
v_bill_number stage_bill.bill_number%TYPE;
v_bill_received_date stage_bill.bill_received_date%TYPE;
v_bill_status stage_bill.bill_status%TYPE;
v_bill_type stage_bill.bill_type%TYPE;
v_change_oltp_by stage_bill.change_oltp_by%TYPE;
v_change_oltp_date stage_bill.change_oltp_date%TYPE;
v_client_datafeed_code stage_bill.client_datafeed_code%TYPE;
v_client_id stage_bill.client_id%TYPE;
v_created_date stage_bill.created_date%TYPE;
v_date_of_incident stage_bill.date_of_incident%TYPE;
v_date_paid stage_bill.date_paid%TYPE;
v_deleted_oltp_by stage_bill.deleted_oltp_by%TYPE;
v_deleted_oltp_date stage_bill.deleted_oltp_date%TYPE;
v_duplicate_bill stage_bill.duplicate_bill%TYPE;
v_ending_service_date stage_bill.ending_service_date%TYPE;
v_event_case_id stage_bill.event_case_id%TYPE;
v_event_id stage_bill.event_id%TYPE;
v_from_oltp_by stage_bill.from_oltp_by%TYPE;
v_oltp_bill_status stage_bill.oltp_bill_status%TYPE;
v_review_status stage_bill.review_status%TYPE;
v_schema_name varchar(50);
v_Load_date date;
v_Load_user varchar(50);
v_Row_Effective_Date date;
v_Row_End_Date date;
Begin
if p_data_load_date is null then
select (sysdate - 7), (sysdate - 1) into v_start_date, v_end_date from dual;
elsif p_data_load_date is not null then
select (p_data_load_date - 7), (p_data_load_date - 1) into v_start_date, v_end_date from dual;
else
raise_application_error('-20042', 'Data control - GetDataControlAuditData : Date parameter must be a date of this or a previous week.');
end if;
-- cursor c_get_data loop begin
OPEN c_get_data;
LOOP -- cursor c_get_data loop begin
FETCH c_get_data
INTO
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
V_Row_Effective_Date,
v_Row_End_Date;
EXIT WHEN c_get_data%NOTFOUND;
insert into STG_FADM_HRI_STAGE_BILL_TEST
batch_id
,beginning_service_date
,bill_id
,bill_method
,bill_number
,bill_received_date
,bill_status
,bill_type
,change_oltp_by
,change_oltp_date
,client_datafeed_code
,client_id
,created_date
,date_of_incident
,date_paid
,deleted_oltp_by
,deleted_oltp_date
,duplicate_bill
,ending_service_date
,event_case_id
,event_id
,from_oltp_by
,oltp_bill_status
,review_status
,schema_name
,Load_date
,Load_user
,Row_Effective_Date
,Row_End_Date
values(
v_batch_id,
v_beginning_service_date,
v_bill_id ,
v_bill_method ,
v_bill_number,
v_bill_received_date,
v_bill_status,
v_bill_type,
v_change_oltp_by,
v_change_oltp_date,
v_client_datafeed_code,
v_client_id,
v_created_date,
v_date_of_incident,
v_date_paid,
v_deleted_oltp_by,
v_deleted_oltp_date,
v_duplicate_bill,
v_ending_service_date ,
v_event_case_id ,
v_event_id,
v_from_oltp_by,
v_oltp_bill_status,
v_review_status,
v_schema_name,
v_Load_date,
v_Load_user,
v_Row_Effective_Date,
v_Row_End_Date ) ;
COMMIT;
END LOOP;
CLOSE c_get_data;Maybe you need something else, like
CREATE OR REPLACE PROCEDURE load_fadm_staging_area_test (
p_data_load_date DATE
) IS
v_start_date DATE;
v_end_date DATE;
BEGIN
SELECT NVL (p_data_load_date, SYSDATE) - 7,
NVL (p_data_load_date, SYSDATE) - 1
INTO v_start_date,
v_end_date
FROM DUAL;
MERGE INTO stg_fadm_hri_stage_bill_test b
USING (SELECT *
FROM stage_bill
WHERE created_date BETWEEN v_start_date AND v_end_date) a
ON (b.bill_id = a.billl_id)
WHEN NOT MATCHED THEN
INSERT (batch_id,
beginning_service_date,
bill_id,
bill_method,
bill_number,
bill_received_date,
bill_status,
bill_type,
change_oltp_by,
change_oltp_date,
client_datafeed_code,
client_id,
created_date,
date_of_incident,
date_paid,
deleted_oltp_by,
deleted_oltp_date,
duplicate_bill,
ending_service_date,
event_case_id,
event_id,
from_oltp_by,
oltp_bill_status,
review_status,
schema_name,
load_date,
load_user,
row_effective_date,
row_end_date
VALUES (a.batch_id,
a.beginning_service_date,
a.bill_id,
a.bill_method,
a.bill_number,
a.bill_received_date,
a.bill_status,
a.bill_type,
a.change_oltp_by,
a.change_oltp_date,
a.client_datafeed_code,
a.client_id,
a.created_date,
a.date_of_incident,
a.date_paid,
a.deleted_oltp_by,
a.deleted_oltp_date,
a.duplicate_bill,
a.ending_service_date,
a.event_case_id,
a.event_id,
a.from_oltp_by,
a.oltp_bill_status,
a.review_status,
'HRI',
SYSDATE,
'ETLPROCESS001',
v_start_date,
NULL
END load_fadm_staging_area_test;Whenever you code a cursor and a loop, ask yourself. Do I need that?
Regards
Peter -
How to load the data from excel file into table in oracle using UTL_FI
How to load the data from excel file into table in oracle
and from table to excel file
using UTL_FILE package
Please give me some exampleThis is something i tried in oracle apex
http://avdeo.com/2008/05/21/uploading-excel-sheet-using-oracle-application-express-apex/
Regards,
CKLP -
Error while retriving the data from the database
morning we shutdown and start up the server.after that when i am retreving the data from the database it is giving the following error.
ora-04030: out of process memory when trying to allocate 64512 bytes(sort subheap,sort key)
pga_aggregate_target details are as follows
value=2147483648
display value=2g
is default=false
is sesmodifiable=false
hash=2184567208Please look at the following link :
how solve ORA-04030: out of process memory when trying to allocate
Cheers! -
THE DATA FROM THE ORACLE DATABASE VIEW DATA IS NOT REFERESHED AUTOMATICALLY
THE DATA FROM THE ORACLE DATABASE VIEW DATA IS NOT REFERESHED AUTOMATICALLY IN OBIEE DASHBOARD(ANSWERS)
UNLESS AND UNTILL I OPEN THE ORACLE BI ADMINISTRATOR TOOL AND DO UPDATE ALL ROWCOUNT AND THEN SAVE THE RPD.
WHERE AS ORACLE DATABASE TABLE DATA IS AUTOMATICALLY REFRESHED.
PLS SOMEONE HELP OUT IN THIS ISSUE.Check whether you have enable cache on that view?
-
Using Iwork 09 I have spent several hours setting up a mail merge from a spread sheet in Numbers to create receipts for my customers from a Pages template.
After the merge I am left with one long Pages document that will not save as separate files; one per customer, it will only save the whole document of several receipts.
What is the easiest way to get the data from the mailmerge to form Pages files that can be saved separately?
Many thanks in advance.
RichardMr. Clark,
You will probably be more pleased with the iWork apps when you begin to learn your way around. Until you learn such basic things as how to print only one page of a document, you will probably continue to be disappointed.
Does your Print dialog look like this:
Or like this:
If it looks like the first one, then you will want to click this expander control:
Regards,
Jerry -
Hi,
I'm doing a internship in a production line.
My job is to recover production data (input data) and test data (output data) using various types of software (excel, BusinessObject sap, etc).
To this day, I have recovered hundreds of production data, and have also organized in excel but I need to analyze and plot them.
I would like to know who can give me an idea of how I could plot as much data and analysis.
Now i trying to use dynamic charts and plot some data but I did not get acceptable answers.
How could I compare, analyze and graph for example:
Five columns of production (input) with five (5) columns tested (data output).
After graphing.
Someone can give me a technique to analyze data? ie I compare column by column?
or some other technique? as a conglomerate could analyze data?
o give you an idea of the contect, now I perform an internship in a manufacturing turbines.
My job is to analyze the input data (production) and to estimate the possible behavior of the turbines in the tests.
As I said, use dynamic tables in excel, but i have not idea why the dynamic tables doesn't take all the data from the source table.
I appreciate your advice
ThanksYou can declare as PT source whole Columns [$A:$E], without rows number.
Then You'll have all actually data.
Oskar Shon, Office System MVP - www.VBATools.pl
if Helpful; Answer when a problem solved -
We move to a new email address. How can we move all the data from the calender (iCloud) to the new calender (because the iCloud is now based on a new email address)
Go to appleid.apple.com and sign in with your current Apple ID
Change the Apple ID to the old one and save changes.
Sign in on the device with the same password for your account.
After logging in and signing out of Facetime, Messages, iCloud and itunes and app store, go back to Apple ID.com and change it back to your normal Apple ID.
Go to your email account and reverify your account by clicking on the Verify now link
Now re-login to those services with your normal Apple ID and password. -
I can not count the data from the module. Can prompt as it to make. It is desirable with examples (data read-out from the module and data transmission between channels. It is in advance grateful.
Hello. Most of the engineers in developer exchange are more familiar
with NI products. Contacting ICS for technical support is a better
course of action. -
Unfortunately, I lost by an update all the apps on my iPad 2. Now I can not pull the data from the cloud to my iPad. How is this possible?
If you just installed iCloud does that mean you updated the iOS that's running on your iPad? If so, you'll want to restore all the programs you have from the backup you hopefully made.
Refer to these articles for help.
iTunes: Backing up, updating, and restoring iOS software.
If you don't want to use iCloud, simply don't activate it.
You can also download the programs again.
If you live in a country that supports re-downloading apps then you can re-download them. You can refer to this article for more help.
Downloading past purchases from the App Store and iTunes Store
What to know if your country supports downloading past purchases?
iTunes in the Cloud Availability -
I have a VI and an attched .txt data file. Now I want to read the data from the .txt file and display it as an array in the front panel. But the result is not right. Any help?
Attachments:
try2.txt 2 KB
read_array.vi 21 KBThe problem is in the delimiters in your text file. By default, Read From Spreadsheet File.vi expects a tab delimited file. You can specify a delimiter (like a space), but Read From Spreadsheet File.vi has a problem with repeated delimiters: if you specify a single space as a delimiter and Read From Spreadsheet File.vi finds two spaces back-to-back, it stops reading that line. Your file (as I got it from your earlier post) is delimited by 4 spaces.
Here are some of your choices to fix your problem.
1. Change the source file to a tab delimited file. Your VI will then run as is.
2. Change the source file to be delimited by a single space (rather than 4), then wire a string constant containing one space to the delimiter input of Read From Spreadsheet File.vi.
3. Wire a string constant containing 4 spaces to the delimiter input of Read From Spreadsheet File.vi. Then your text file will run as is.
Depending on where your text file comes from (see more comments below), I'd vote for choice 1: a tab delimited text file. It's the most common text output of spreadsheet programs.
Comments for choices 1 and 2: Where does the text file come from? Is it automatically generated or manually generated? Will it be generated multiple times or just once? If it's manually generated or generated just once, you can use any text editor to change 4 spaces to a tab or to a single space. Note: if you want to change it to a tab delimited file, you can't enter a tab directly into a box in the search & replace dialog of many programs like notepad, but you can do a cut and paste. Before you start your search and replace (just in the text window of the editor), press tab. A tab character will be entered. Press Shift-LeftArrow (not Backspace) to highlight the tab character. Press Ctrl-X to cut the tab character. Start your search and replace (Ctrl-H in notepad in Windows 2000). Click into the Find What box. Enter four spaces. Click into the Replace With box. Press Ctrl-V to paste the tab character. And another thing: older versions of notepad don't have search and replace. Use any editor or word processor that does. -
The problem here is i am not able to get the data from the list
hi all,
i have the following code
EnrichedProductCatalogue enrichedProductCatalogue1 = new EnrichedProductCatalogue();
enrichedProductCatalogue1.setAssetCount(2);
enrichedProductCatalogue1.setBlockingProduct("Weekend Freebee");
enrichedProductCatalogue1.setBlockingReason("Compatability");
ArrayList<String> availableActionsList = new ArrayList<String>();
availableActionsList.add(EnrichedProductConstants.ADD.toString());
availableActionsList.add(EnrichedProductConstants.REMOVE.toString());
enrichedProductCatalogue1.setAvailaibleActions((ArrayList<String>)availableActionsList);
BundleProduct bundleProduct = null;
Product product = new Product();
product = new Product();
product.setProductName("International");
product.setProductClassName("International");
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory);
bundleProduct = new BundleProduct();
bundleProduct.setCommercialProduct(product);
enrichedProductCatalogue1.setBundleProduct(bundleProduct);
listOfEnrichProducts.add(enrichedProductCatalogue1);
listOfEnrichProducts.add(enrichedProductCatalogue1);
here i have an list called listOfEnrichProducts.
here i am adding two objects of enrichedProductCatalogue.
which contains a object called BundleProduct.
which has a reference for Product class.
here this product class has a list which contains objects of another class called UiCategory.
the problem here is i am not able to get the data from the list which contains UiCategory objects .
the following is the UI
<af:table var="row" rowBandingInterval="0" id="t1"
value="#{pageFlowScope.sample1}"
binding="#{pageFlowScope.sampleManagedBean.dataTable}"
partialTriggers="apimethods ::apimethods">
<af:column sortable="false" headerText="ProductName" id="c2">
<af:outputText value="#{row.bundleProduct.commercialProduct.productName}" id="ot15"/>
</af:column>
<af:column sortable="false" headerText="ProductClass" id="c12">
<af:outputText value="#{row.bundleProduct.commercialProduct.productClassName}" id="ot19"/>
</af:column>
<!--
<af:column sortable="false" headerText="UICategoryName" id="c32">
<af:forEach var="item" items="#{row.bundleProduct.commercialProduct.uiCategory}" >
<af:outputText value="#{item.categoryName}" id="ot119"/>
</af:forEach>
</af:column>
-->
<af:column sortable="false" headerText="AssetCount" id="c22">
<af:outputText value="#{row.assetCount}" id="ot1"/>
</af:column>
<af:column sortable="false" headerText="blockingReason" id="c3">
<af:outputText value="#{row.blockingReason}" id="ot2"/>
</af:column>
<af:column sortable="false" headerText="blockingProduct" id="c4">
<af:outputText value="#{row.blockingProduct}" id="ot3"/>
</af:column>
<!--<af:column sortable="false" headerText="availaibleActions" id="c1">
<af:commandButton text="#{row.availaibleActions}" id="cb1"
actionListener="#{pageFlowScope.sampleManagedBean.callAction}"
partialSubmit="true">
<af:setPropertyListener from="#{row.availaibleActions}"
to="#{pageFlowScope.avalibleaction}" type="action"/>
</af:commandButton>
</af:column>-->
</af:table>
Can anyone pls give some solution ...Hi Frank,
value="#{pageFlowScope.sample1}"
here sample is
Map<String, Object> flowScope1 =
ADFContext.getCurrent().getPageFlowScope();
flowScope.put("sample1", listOfEnrichProducts);
this is not the problem . i am able to get all the values except the following .
ArrayList<UiCategory> uiCategory = new ArrayList<UiCategory>();
UiCategory uiCategory1 = new UiCategory();
uiCategory1.setCategoryName("Simply");
UiCategory uiCategory2 = new UiCategory();
uiCategory2.setCategoryName("Freebees");
uiCategory.add(uiCategory1);
uiCategory.add(uiCategory2);
product.setUiCategory(uiCategory); -
My Iphone was sync with Itunes on a computer then this computer broke down and i purchased another one. I was able to extract all the data from the old one. now how can i sync my phone with the new tunes without loosing any data?
Yes, windows to Mac too.
iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527
Quick answer if you use iTunes' default preferences settings: Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive. Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
Windows users see tip at: https://discussions.apple.com/message/18879381
Maybe you are looking for
-
Error while connecting to R/3 system
Hello All, I am trying to connect BW and R/3 system .I have done all the necessary settings : RFC connections, Defined message types, generated partner profile. Now I am trying to connect to R/3 system through RSA1. I picked up the right target host
-
I need help viewing password protected PDF files on my tablet
I need help veiwing password protected PDF files on my tablet
-
I read that photos are not stored in the cloud until 1000 have been taken on my device's. Is there a way to force all my photo's to the cloud so they are not stored on my device's?
-
I built a panel today and all works well except the ACTIONS. I created separate action menus for several workflow actions I have tested and I get an error saying "this version of photoshop [CS4 etx in my case] cannot fullfill this service....." Some
-
Amateurish question on Oracle BI
I have been Quite running around to get the difference between Oracle BI(OBIEE), Hyperion essbase and siebel analytics . some state 1,3 is the same and name changes , some web ites states OBI is consisting of different suites + HY ess. Please post a