PL/PDF EXAMPLE
For creating PDF's using PL/PDF how would I pass a report that is say on page 4 to the PL/PDF methods?
I'm able to create a simple "test page" by creating a pl/sql block before header loads. Now I need to determine how to pass the report itself to display in the browser in PDF format.
Thanks,
BT
Hi Bob,
Unfortunately you can't just 'pass' a report to be rendered by PL/PDF you need to build up the report in PL/PDF itself using the different procedure calls available in the PL/PDF packages.
You can however do much to make your procedures 'generic' in that you can pass in a query and have your report generation routine use that query to generate the report. Alternatively you can use 'templates' with PL/PDF although I have no direct experience of that.
Similar Messages
-
XSQLRequest to PDF Example ?
I was wondering if anyone has any recommendations or sample code
that demonstrates how to utilize the XSQLRequest object and
methods to output the XSQL result to PDF with the associated FOP
java code?
The following code successfully returns the transformed XSQL
page to the screen.
//Working Output XSQL -> FO, returned to Screen
XSQLRequest r = new XSQLRequest("file:///c:/java/w.xsql");
r.process(new PrintWriter(System.out),
new PrintWriter(System.err));
Do I need to use the processToXML method and then serialize that
document with the FO code? Or do I need implement the
XSQLPageRequest interface instead?
Any help would be appreciated.
BrianI was able to work through my questions and thought I would
share my code. Hope this helps someone in the future.
Brian
Hashtable params = new Hashtable(1);
params.put("ID", ""+Id);
XSQLRequest request = new XSQLRequest
("file:///c:/java/table.xsql");
XMLDocument XMLdoc = (XMLDocument)request.processToXML(params);
// Print output of FO Document
// XMLdoc.print(new PrintWriter(System.out));
try {
String fileName = "c:/java/W"+Id+".pdf";
File writefile = new File(fileName);
writefile.createNewFile();
Driver driver = new Driver();
driver.setRenderer(Driver.RENDER_PDF);
driver.setErrorDump(true);
driver.setupDefaultMappings();
driver.setOutputStream(new FileOutputStream(writefile));
driver.render(XMLdoc);
} catch (Exception ex) {ex.printStackTrace();} -
Can I create a task in Outlook 2010 from a .pdf
Hello
New here.
Using Adobe Acrobat Standard X
Windows 7 Prof 32 bit
Outlook 2010
I can create an Outlook 2010 task from a word doc or excel spreadsheet, now I would also like to be able to create such a task from a .pdf
Example: I'm corresponding with a financial institute via email, creating .pdf from the emails and just saving in a folder on my PC. I would like to be able to take that .pdf and link it to my Outlook tasks so it actually becomes a To Do item to 'jog' my memory.
Is this even possible?
Thanks very muchNobody?
-
PDF Printing Issue with APEX4.0
Hi,
Im using APEX4.0, Database 10gXE and BI Publisher as my report server. As a example I downloaded the master-detail pdf example but each time I try to print I get the error;
ORA-20001: The printing engine could not be reached because either the URL specified is incorrect or a proxy URL needs to be specified.
I have set my APEX instance settings to point to BI Publisher. I have also tested BI Publisher using a metalink note to prove that the issue is not with BI Publisher but with APEX trying to communicate with BI Publisher.
Its almost as if everything is pointing to the network services not being enabled but I thought this was only the case in database11g and not 10gXE.
Any pointers or suggestions appreciated.
Thanks
GraemeHi,
Ignore this now. I uninstalled BI Publisher and re-installed it. I think the issue was a space in the original folder that BI Publisher was installed in. -
Adobe Acrobat Pro extended batch watermarks trouble on 3d PDFS
Hello there
we are very interested in buying a license of your software but we have a few reservations
I cannot get the batch watermark facility to work on a batch of 3d PDF encoded from pro engineer wildfire 2. When i apply the watermark the watermark does not appear at all or behind the object. Attached are screen dumps of the setups from pro extended and the file used maybe you can shed some light on this. This is a essential part of the use of the software and we need to protect our copyright over 1500 pdfs. we are trailing the software at this present moment and looking at buying.
Attached are the following
3d pdf examples from the batch list
CI6019T
AU8001T
AU8005T
BM6017
The watermark
Eecfill7
Screen dumps of the setups (JPG)
Adobedump
Adobe2
The watermark is supposed to be displayed above the 3D PDF, the problem is that it either does not water at all or the watermark is below, any help on this matter would be greatly appreciated.
Kind regards
H Hagley
[email protected]
CAD engineerYou can not do that using Adobe Acrobat 9. Adobe never made a create PDF add-on for Firefox for use with Adobe Acrobat 9. They created a Firefox add-on for use with Acrobat X, but currently that one does not work with Firefox 4 though Adobe are working on an update.
-
Adding Field Info in Subject Line of Email with Attached PDF
Had a question regarding the email submit button. I wanted to know if there was a way to put the information put into a specific text field in the email subject line when the PDF is being sent via email as an attached.
For Example:
Question one on the form would be.....
1). Why are you submitting this email?
(Answer by User) Website Technical Issue
I would like to take the text "Website Technical Issue" and add to subject line of the email being sent by the user when they press submit/send at the bottom of the PDF. So it would send an email out of their inbox, with the attached PDF they filled out, and the subject line stating what ever they put in text field 1.
Any help or a given PDF example would be greatly appreciated! Thanks in advance!Hello Everyone,
I am having the same issue as tlg814 with needing three fields to pull into the subject, and I followed the blue print of the code as well, but I am only getting one field to populate in the subject line. I am using Acrobat XI. Here is my code:
Mouse up> Run a JavaScript
var parts = getField("SR#", "Urgency", "Ship To").value
this.mailDoc({
cTo: "[email protected]",
cCc: "[email protected]",
cSubject: parts,
cMsg: "Please create a Parts Request for the items in this email. Thanks"
Any thoughts as to why it is not pulling all three fields?
Thanks -
I have several applications that generate .pdf form with several sections of sql queries (returning N number of records depending on the query result) by using Oracle Reports. These reports (or forms) are then called from within APEX - the actual username and password are not shown in URL and are stored in the key file in the application server. I would like to re-write these forms in PL/PDF. However, since the forms include some dynamic sections of SQL queries, does anyone know how to mix a template and PL/SQL to generate one-single document by using PL/PDF?
Thanks.
AndyAlthough I am not familiar with this pl/pdf example, I can see that that nowhere in this procedure is any data selected to be printed on the template.
You would expect something like
select empno, ename from emp
to select data to be printed on the template. It looks like your procedure just prints the template, but does not put any data on it. Correct? -
Populating a pdf from database with ASP
Hi,
I have been tasked to see if it is possible to fill in
http://www.uses.doleta.gov/pdf/eta9061.pdf
this government form and
several others dynamically from a database.
Does anyone have an idea if it can be done via ASP or am I
looking at
recreating each form with HTML and filling in that way.
My main issue with this is if the government will accept the
generated
forms that way.
Any ideas would be helpful.
Thanks in advance> Does anyone have an idea if it can be done via ASP or am
I looking at
> recreating each form with HTML and filling in that way.
> My main issue with this is if the government will accept
the generated
> forms that way.
As a .gover myself, I have to deal with thie all the time.
The core problem is that .gov is *still* run on paper-forms,
and solutions
like these are nothing but gigantic hacks that don't actually
solve the core
issue: distributing and collecting data electronically.
If you zoom into that particular PDF example, you will note
that it is not
'electronic' at all.
It's nothing more than a scanned piece of paper.
So, to get this to where the client would be happy, you're
going to have to
first add PDF form fields to this PDF. Then be sure to put in
the
apporpriate labels and extra text to make it accessible. Then
you need to
create the data-base back end. Then you need to create an
interface to get
the data to and from the PDF.
Then you're done.
Until they decide to slightly change the form.
Then look out.
Ultimately, this is a really dumb way to go about it.
Granted, it'll be a
big chore to convince them of that. ;o)
Ideally, you'd take the simple route, as simple is often
better. Make a web
form. Let people fill it out online. Once filled in, give
them a printable
HTML form back.
Adobe has done an AMAZING job of firmly getting their foot in
the .gov door,
and it's going to be REALLY hard to pry that foot out, but
hopefully we'll
get there some day.
-Darrel -
How to insert a PDF document into a Word file?
I'm using Acrobat Standard 9 and Microsoft Word 2010 and I'm unable to insert a PDF document into a Word file. Operating system is Windows 7 Enterprize. Can someone help?
Thanks for the reply, Bill.
Yes, let me elaborate further:
I have a four page document in WORD with instructions. Examples of the instructions are in PDF files. I want to insert each PDF example next to or below each line item in WORD.The PDF will open when clicking on the icon without having a hyperlink attached to it. -
Linking between Flash, pdf and html
How to link from Flash to certain page in pdf document
displaying in web browser?
this is not working:
on (release) {
getURL("interfaces.pdf#example", "_self");
neither: #nameddest=example, #page=2
This works though from html, but only first time. If you surf
beck and then go to the same link it doesnt navigate to that page!
Any idea very appreciated!
ThanxHi Raymond,
To respond to your question:
Would I have to create two regions with each region the same chart one in Flash and one in HTML and Hide/Show the region depending on the platform I am running eg iPAD or Desktop?
No, this isn't necessary at all. One chart region with a "Chart Rendering" setting of "Flash Chart" on the Chart Attributes page will do the trick. With APEX 4.2, we introduced HTML5 chart support using AnyChart, our existing supplier of Flash charts in APEX. One of the great features of their new HTML5 charting support is how they handle the rendering of a chart. If you take a look at AnyChart's documentation on the rendering options available as part of their HTML5 support, http://www.anychart.com/products/anychart/docs/users-guide/migration-guide.html#from-5.1.x-to-6.x-rendering-types, there are 4 possible rendering options available. We declaratively support two of those options in APEX:
AnyChart Rendering Option Associated APEX "Chart Rendering" setting
FLASH_PREFERRED Flash Chart
SVG_ONLY HTML5 ChartSo if you choose to generate a "Flash Chart" in APEX 4.2, AnyChart will handle the rendering of that chart for you, depending upon whether Flash is found on the device or not. Where Flash is detected, a Flash chart is rendered, however if Flash isn't detected (e.g. on devices such as an iPad), then a HTML5 chart will be rendered. So there's nothing additional for you to do - no need for two regions on your page with two different charts. If you choose to generate a "HTML5 Chart", then a HTML5 chart will always be rendered - this is no fallback to Flash with this option.
I hope this helps to clarify things for you.
Regards,
Hilary -
Hi,
I created a PDF form with fields and combo boxes.
some of them have to be filled before sending the form.
but this only works with the textfields and not with the combo boxes.
these are not marked with red rectangle as the text fields.
please help! PDF example can be provided.
thank you!
AndreasHi George!
Thank you for your reply.
Yes. It is true, I checked that, When allowing this option it works.
but I made a PDF form earlier. Some months ago. And there it worked even when I do not allow custom text.
Can I send you the both PDF Forms?
I doublechecked that...and also the old form doesn't work, sorry!
regards
Andreas -
Hi,
We have a 250+ page list price book and our customers are requesting the option to change the prices in accordance to what their discount multiplier is; what is the best way to accomplish this? (Can it be done through Acrobat, LiveCycle, Javascript....)
these are the steps that we currently take to create the PDF:
update the prices in Excel spreadsheet
import the spreadsheet into InDesign as tables
format the tables in InDesign to how we want them
export to PDF
Example, if their multiplier is .64; I want all the prices in this PDF to change the prices to .64. (The cost of the first item would be 2.52 x .64 = 1.61.)
Here is an example of a price page:Yes, it can be done in a PDF, but it would require placing form fields on top of all the areas where there are currently static prices and then use a script to populate those fields with the correct amount. Not a simple task, especially the part where the fields have to be added to all of those pages...
-
Newly added pdfs will not display after generating primarly layout
RoboHelp X5. I'm replacing pdf files for a Help project
that's been in place for over a year. From the user's perspective
the files are accessed via a link when accessing Help. I removed
the link (a link to, let's say example.pdf rev A). I recreated the
link by pointing to the new pdf (example.pdf rev B). All my pdfs
are on my local drive under C:\Program Files\RoboHelp
Office\RoboHTML\<project name>. After updating the pdfs and
subsequently deleting the old pdfs several baggage files showed the
red X. I deleted these baggage files b/c they represented the old
files. After generating the primary layout none of the re-created
links worked. Only the links I didn't touch work. The working links
are also the only files that have a representation in the baggages
file folder. I tried adding baggage files but it doesn't work. My
PC is WXP SP2 w/Office 2007. I uninstalled RoboHelp (I didn't touch
the registries). Reloaded RoboHelp and noticed that Office 2007
wasn't listed. So I went to another PC that's never had RoboHelp
and runs WXP SP2 w/Office 2000. The installation went fine however
the same problem occurs. Also on either PC I can run the unused
files report which lists all the files I need (the ones I just
added). But I don't know how to make an unused file, used.thanks. I actually followed those same steps yesterday (for
adding a baggage file). I was able to get the file to appear in the
baggage folder but after compiling, when I click on the link,
nothing happens. Whereas before I'd get the "cannot display
webpage" error. -
PL/PDF - Procedure template
Hello All,
I have Oracle XE 10g with Oracle Apex and recently I installed PL/PDF in the same. I tried to execute the template procedure given in the installation guide. But it does not print data in template procedure after printing the template. How can I get the data from template procedure?
The template_eg procedure is not not printing "Template Example".
- create template procedure
CREATE OR REPLACE package template_eg is
/* 50. Example: Templates */
procedure template_init;
procedure template_eg;
end;
CREATE OR REPLACE package body template_eg is
/* The template */
v_tpl plpdf_type.tr_tpl_data;
/* Prepare template PDF */
procedure template_init is
l_pdf blob;
begin
/* Select template PDF*/
select t.orig_pdf
into l_pdf
from plpdf_template t
where id = 1;
/* Parsing data */
v_tpl := plpdf_parser.GetTemplate(
p_blob => l_pdf,
p_page_id => 1
end;
/* Procedure which use the template page */
procedure template_eg is
l_blob blob;
l_tpl_id number;
begin
/* Initialize template document */
template_init;
/* Initialize, without parameters means:
- page orientation: portrait
- unit: mm
- default page format: A4 */
plpdf.init;
/* Insert a template into the pdf.
Return: Template ID */
l_tpl_id := plpdf.InsTemplate(
p_tpl => v_tpl -- Template data
/* Begin a new page, without parameters means:
- page orientation: default (portrait) */
plpdf.NewPage;
/* Use a template. */
plpdf.useTemplate(
p_tplidx => l_tpl_id -- Template ID
/* Sets the font and its properties */
plpdf.SetPrintFont(
p_family => 'Arial', -- Font family: Arial
p_style => null, -- Font style: regular (default)
p_size => 12 -- Font size: 12 pt
/* Draws a rectangle cell with text inside.
The rectangle may have a border and fill color specified. */
plpdf.PrintCell(
p_w => 50, -- Rectangle width
p_h => 10, -- Rectangle heigth
p_txt => 'Template Example' -- Text in rectangle
/* Returns the generated PDF document.
The document is closed and then returned in the OUT parameter. */
plpdf.SendDoc(
p_blob => l_blob -- The generated document
/* Print it:*/
owa_util.mime_header('application/pdf',false);
htp.p('Content-Length: ' || dbms_lob.getlength(l_blob));
owa_util.http_header_close;
wpg_docload.download_file(l_blob);
end;
end; -- End of package template_eg
Thanks.Although I am not familiar with this pl/pdf example, I can see that that nowhere in this procedure is any data selected to be printed on the template.
You would expect something like
select empno, ename from emp
to select data to be printed on the template. It looks like your procedure just prints the template, but does not put any data on it. Correct? -
Please send useful information docs or link or examples to understand
Hi
friends need help in OSB can any one provide document for osb and Esb please help me
Thanks&Regarding
SanthoshHi Santosh,
for osb and Esb
Oracle ESB and OSB confusion
Oracle Service Bus (OSB) is the new name for AquaLogic Service Bus (ALSB). Oracle Enterprise Service Bus (ESB) is the 'old' Oracle product which they have re-branded it as Oracle Mediator and is use along with Oracle SOA Suite.
Please find below urls :
http://docs.oracle.com/cd/E23943_01/doc.1111/e15020/toc.htm --Concepts and Architecture for Oracle Service Bus
http://docs.oracle.com/cd/E23943_01/dev.1111/e15866/toc.htm -- Developer's Guide
http://java.net/downloads/oraclesoasuite11g/OSB/osb_examples_tutorials_111130.pdf -- Examples and Tutorials
http://www.oracle.com/technetwork/middleware/service-bus/learnmore/index.html -- OSB Books
http://java.net/projects/oraclesoasuite11g/pages/OSB -- Official OSB Sample Projects
Regards,
Abhinav Gupta
Maybe you are looking for
-
I can not scroll through web pages with the scroll feature on my touch pad. It worked in 3.6 and all other programs that I use. I have tried 4.0 twice with the same results, I've restarted, rebooted etc. This should not be application dependant but a
-
How to read the TEXT TABLE (or) .CSV in HSQLDB Standalone using Java
Hi, I like to use the text tables in our application. And like to use the HSQL Database Engine as Standalone. I created the text tables, those are stored in the disk as ".CSV" files. But i am unable to read that text table (.CSV) when i relogin and g
-
How can I start a macro in Word from Forms with the DDE-package? For Excel I use this command ('update' is the macro-name): DDE.Execute(ConvID, [run "'test.xls!update"]', 10000); Does anybody know the right approach for a Word macro? Thanks. null
-
i have full battery, tryed shift-alt-control-power.. No response at all
-
LMS Database consistency verification tool
Hello all, I upgraded from LMS 3.1 to 3.2 yesterday. The upgrade went well, but DFM and Campus Manager didn't work afterwards. After a few searches on the forum, and the help of a great Cisco TAC engineer, we were able to solve the PIDM database inco