How to generate PDF with bookmarks?
Hi,
The business request is to have pdf report with bookmarks. There is no predefined bookmark object in Livecycle Designer/SFP so my idea is to add some scripting to the form to generate bookmarks dynamically. I defined a standard pdf form with several lines of JavaScript embedded. The script is running in the form preview in Livecycle Later I was testing the form by calling its function module and looking at the generated PDF file. Unfortunately it seems there is no script embedded in the final output PDF generated by ADS.
Is Javascript supported in pdf forms? Do I need to perform any additional operations to enable the Javascipt? Do I need to pass additional parameters to ADS? I tested the following settings:
fp_docparams-fillable = 'X'.
fp_docparams-DYNAMIC = 'X'.
fp_outputparams-getpdf = 'X'.
fp_outputparams-PDFTAGGED = 'X'.
fp_outputparams-PDFCHANGESRESTRICTED = ' '.
I appreciate any suggestion.
Hi Lata,
May be there is some error in the JavaScript code written.
Sometimes if there is an error in JavaScript then from where the error occurs from there the JavaScript wont work in the Adobe Form.
To check whether JavaScript contains errors or not. You just simply open your Adobe Acrobat Reader goto Edit in that goto Preferences and in that Select "JavaScript" in that you find the JavaScript Debugger there you enable "Show Console on errors and messages".
This may help you in some way or the other.
Regards
Pradeep Goli
Similar Messages
-
How to export PDF with Bookmarks from Headings?
Does anyone know if it's possible to export a PDF with Bookmarks (not internet bookmarks, but rather the Table of Contents in Preview.app bookmarks) from the style headings? Word 2007 does it with the Save to PDF add-on. Here is what i mean:
http://img180.imageshack.us/img180/7883/word2007saveaspdfqz6.png
Thanks!http://discussions.apple.com/thread.jspa?messageID=5827357�
http://discussions.apple.com/thread.jspa?messageID=6072285� -
How to open pdf with bookmarks panel showing?
Hi all,
I have searched and had no luck. I found a helpful a post but it did not help in my case. I need my PDF that I created via LiveCycle to open with bookmarks panel showing. I tried (control+D) File > Properties >initial View but the features/options are all disabled.
The file is not passport protected and I created myself.
Any help/tip provided would be very much appreciated,
AdnanPaul,
Thanks for your quick response. It works; however, it prompts to save changes even to file even if I make no changes to it.
I created a button to save changes (code below) but it still prompts.
app.execMenuItem('Save');Named: Action=SaveAs;
Thank you,
Adnan -
What are the best options for creating a PDF with bookmarks and a hyperlinked TOC?
What I'm interested in is whether or not there is an alternate process I could follow that would side step Word 2011's inability to export to PDF with bookmarks and hyperlinked TOCs. How do you create PDF documents with bookmarks and hyperlinked TOCs in your documents?
Some background:
In Word 2010 and 2013 for Windows (and I'm sure this applies to older versions as well), you can export documents to a PDF file format where the exported file will carry over the bookmarks and hyperlinked table of contents. Specifically, by making specific text headers, will appear in the final PDF file as bookmarks on the side (see image taken from Adobe's website).
Regarding the table of contents, using Word's built in Table of Contents feature successfully ports the ability to navigate to a specific section by clicking on its chapter in the table of contents to the finished PDF file.
I've read several forum discussions that say it's not possible to do this from Word 2011, so my current solution is to just finish all documents on a Windows machine (either with parallels or a separate computer). The alternate process flow of creating a word document, exporting it to PDF, then rehyperlinking everything in Acrobat is just too time consuming to consider.Hi, beejasaurus
I found a possible kluge from this discussion here
https://forums.adobe.com/thread/1008480
Create the hyperlinks in Word, save the file
Open that file with Pages, export as PDF.
The links work from that PDF.
Note, I did not try this with TOC but it worked with hyperlinks embedded in the Word document -
Can't open libHaru-generated PDF with Reader, other readers work.
Our application uses libHaru to export PDF images. These PDFs can be opened using PDFlite on Windows, Preview on Mac and some other readers. However, I have tried several versions of Adobe Reader on both platforms and the files fail to open with the message: "There was an error processing a page. There was a problem reading this document (14)." So, it seams that Adobe Reader believes that there is problem with this file. However, from my very limited understanding of PDF structure, I have no idea what might be wrong, so I don't know how to fix it. The file is written unencrypted. It is about as simple a PDF as we can generate - a red-filled rectangle. I would greatly appreciate any suggestions or help.
Here is a sample PDF:
%PDF-1.3
%∑æ≠™
1 0 obj
<<
/Type /Catalog
/Pages 2 0 R
>>
endobj
2 0 obj
<<
/Type /Pages
/Kids [ 4 0 R ]
/Count 1
>>
endobj
3 0 obj
<<
/Producer (Haru Free PDF Library 2.3.0-dev)
>>
endobj
4 0 obj
<<
/Type /Page
/MediaBox [ 0 0 236 207 ]
/Contents 5 0 R
/Resources <<
/ProcSet [ /PDF /Text /ImageB /ImageC /ImageI ]
/Pattern <<
/Type /Pattern
/PatternType 1
/PaintType 2
/TilingType 2
/BBox [ 0 0 100 100 ]
/XStep 100
/YStep 100
>>
>>
/Parent 2 0 R
>>
endobj
5 0 obj
<<
/Length 6 0 R
>>
stream
1 0 0 -1 -118 296 cm
1 w
0 0 0 RG
[] 0 d
1 0.3 0.3 rg
q
% Rect
119.25 90 m
352.5 90 l
352.5 294.75 l
119.25 294.75 l
119.25 90 l
h
B
Q
endstream
endobj
6 0 obj
135
endobj
xref
0 7
0000000000 65535 f
0000000015 00000 n
0000000064 00000 n
0000000123 00000 n
0000000188 00000 n
0000000458 00000 n
0000000647 00000 n
trailer
<<
/Root 1 0 R
/Info 3 0 R
/Size 7
>>
startxref
666
%%EOFYou would need to post a sample PDF that demonstrates the problem. All you posted there is text. (PDF is a BINARY file format)
From: Adobe Forums <[email protected]<mailto:[email protected]>>
Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
Date: Thu, 13 Oct 2011 11:02:42 -0700
To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
Subject: Can't open libHaru-generated PDF with Reader, other readers work.
Can't open libHaru-generated PDF with Reader, other readers work.
created by Fred Snerd<http://forums.adobe.com/people/Fred+Snerd> in PDF Language and Specifications - View the full discussion<http://forums.adobe.com/message/3969828#3969828 -
Exportting a PDF with bookmarks
How do I export report to PDF with bookmarks. The report has groups with each group needed as bookmark. This this avialable in JRC.
I tried to use this method but was not able to get pdf with bookmarks. I am using crystal report that is developed using version 11.0.0.1282. Will the bookmarks work only with newer version of crystal reports.
-
How to generate PDF report directly instead of RPT report by using JRC ?
Hi,
Good Day !
How to generate PDF report directly instead of RPT report by using Crystal Reports XI Release 2 Java Reporting Component (JRC) in desktop (Swing thick-client) ?
My GUI program will generate a RPT report, then i can export to PDF file, this is ok, no problem.
BUT
i want it direct to generate a PDF report, not a RPT report.
The code like below (2 java files)
ClassA.java
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(XXX, 0);
ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
paramFieldController.setCurrentValue("", "XXX", DomainClass.getXXX());
new ReportViewerFrame(reportClientDoc);
// End of ClassA.java
// Begin ReportViewerFrame.java
public class ReportViewerFrame extends JFrame
//Initial window frame properties.
private final int XPOS = 80;
private final int YPOS = 60;
private final int WIDTH = 760;
private final int HEIGHT = 550;
private ReportViewerBean reportViewer = new ReportViewerBean();
private ReportClientDocument reportClientDoc = new ReportClientDocument();
public ReportViewerFrame(ReportClientDocument reportClientDoc) throws Exception
//Initialize frame properties.
this.setResizable(true);
this.setLocation(XPOS, YPOS);
this.setSize(WIDTH, HEIGHT);
this.setTitle("Crystal Report Java Viewer");
//Add GUI components to the frame including the ReportViewerBean.
addComponents();
//Add GUI listeners to the frame.
addListeners();
//Set the report that the ReportViewerBean will display.
this.reportClientDoc = reportClientDoc;
reportViewer.setReportSource(reportClientDoc.getReportSource());
reportViewer.init();
reportViewer.start();
//Display the frame.
this.setVisible(true);
How to set the export option to PDF base on existing code ?
Where can i download this package/jar ?
regardsPlease find a console app that you can extend it to a JFrame app by importing the relevant swing package:
//Crystal Java Reporting Component (JRC) imports.
import com.crystaldecisions.reports.sdk.*;
import com.crystaldecisions.sdk.occa.report.lib.*;
import com.crystaldecisions.sdk.occa.report.exportoptions.*;
//Java imports.
import java.io.*;
public class ExportReport {
static final String REPORT_NAME = "ExportReport.rpt";
static final String EXPORT_FILE = "C:\\myExportedReport.pdf";
public static void main(String[] args) {
try {
//Open report.
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(REPORT_NAME, 0);
//NOTE: If parameters or database login credentials are required, they need to be set before.
//calling the export() method of the PrintOutputController.
//Export report and obtain an input stream that can be written to disk.
//See the Java Reporting Component Developer's Guide for more information on the supported export format enumerations
//possible with the JRC.
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
//Release report.
reportClientDoc.close();
//Use the Java I/O libraries to write the exported content to the file system.
byte byteArray[] = new byte[byteArrayInputStream.available()];
//Create a new file that will contain the exported result.
File file = new File(EXPORT_FILE);
FileOutputStream fileOutputStream = new FileOutputStream(file);
ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
byteArrayOutputStream.write(byteArray, 0, x);
byteArrayOutputStream.writeTo(fileOutputStream);
//Close streams.
byteArrayInputStream.close();
byteArrayOutputStream.close();
fileOutputStream.close();
System.out.println("Successfully exported report to " + EXPORT_FILE);
catch(ReportSDKException ex) {
ex.printStackTrace();
catch(Exception ex) {
ex.printStackTrace();
As to the relevant jar(s) deployment refer to this link (Java Reporting Component Configuration):
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/JRC_SDK/jrc_java_dg_doc/doc/jrcsdk_java_dg/WorkingWithJRC2.html#1004391
Cheers -
Hi I want to show pdf using javascript and also shoow pdf's book.
Is it possible to extract pdf book from pdf using javascript?
Yes then please let me know how i can do?
thanks in advance for your help.hi
i want javascript code, which show pdf with bookmark on ios(ipad).
i am developing a native app in ios with objective c. In my app i need read & show PDF with bookmark.
So if any javascript availble to read and show, please let me know.
Thanks in advance for your help. -
Export a report though the URL as a PDF with BOOKMARKS
Hi. I would like to export a report though the URL as a PDF with BOOKMARKS.
As recommended in other posts, I updated Crystal Reports XI to Release 2 and I am able to export my report as a PDF with the bookmarks within the Crystal Reports tool.
Is there a way to export my report as a PDF with the bookmarks through the URL ?
Specifically, I would like to know the syntax of the URL to include the bookmarks.
Thanks.
KPYou need to use OpenDocument feature.
.NET:
[http://<ServerName>businessobjects/enterprise115/infoview/scripts/openDocument.aspx?iDocID=<idocid>&sOutputFormat=P]
JSP:
[http://<ServerName>:<port No.>/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?iDocID=<idcoid>&sOutputFormat=P] -
How to create PDF with Form Builder (T-Code:SPF) and how to use it?
How to create PDF with Form Builder (T-Code:SPF) and how to use it? Is there anyone can show me some doc. or PA material ? << removed >> Thank you very much!!
Edited by: Rob Burbank on Nov 11, 2010 1:04 PMPDF forms also known as Adobe From or Interactive Forms.
Check this link -
Interactive Forms
REG:ADOBE FORM
Adobe forms
Regards,
Amit -
How to generate report with dynamic variable number of columns?
How to generate report with dynamic variable number of columns?
I need to generate a report with varying column names (state names) as follows:
SELECT AK, AL, AR,... FROM States ;
I get these column names from the result of another query.
In order to clarify my question, Please consider following table:
CREATE TABLE TIME_PERIODS (
PERIOD VARCHAR2 (50) PRIMARY KEY
CREATE TABLE STATE_INCOME (
NAME VARCHAR2 (2),
PERIOD VARCHAR2 (50) REFERENCES TIME_PERIODS (PERIOD) ,
INCOME NUMBER (12, 2)
I like to generate a report as follows:
AK CA DE FL ...
PERIOD1 1222.23 2423.20 232.33 345.21
PERIOD2
PERIOD3
Total 433242.23 56744.34 8872.21 2324.23 ...
The TIME_PERIODS.Period and State.Name could change dynamically.
So I can't specify the state name in Select query like
SELECT AK, AL, AR,... FROM
What is the best way to generate this report?SQL> -- test tables and test data:
SQL> CREATE TABLE states
2 (state VARCHAR2 (2))
3 /
Table created.
SQL> INSERT INTO states
2 VALUES ('AK')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('AL')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('AR')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('CA')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('DE')
3 /
1 row created.
SQL> INSERT INTO states
2 VALUES ('FL')
3 /
1 row created.
SQL> CREATE TABLE TIME_PERIODS
2 (PERIOD VARCHAR2 (50) PRIMARY KEY)
3 /
Table created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD1')
3 /
1 row created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD2')
3 /
1 row created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD3')
3 /
1 row created.
SQL> INSERT INTO time_periods
2 VALUES ('PERIOD4')
3 /
1 row created.
SQL> CREATE TABLE STATE_INCOME
2 (NAME VARCHAR2 (2),
3 PERIOD VARCHAR2 (50) REFERENCES TIME_PERIODS (PERIOD),
4 INCOME NUMBER (12, 2))
5 /
Table created.
SQL> INSERT INTO state_income
2 VALUES ('AK', 'PERIOD1', 1222.23)
3 /
1 row created.
SQL> INSERT INTO state_income
2 VALUES ('CA', 'PERIOD1', 2423.20)
3 /
1 row created.
SQL> INSERT INTO state_income
2 VALUES ('DE', 'PERIOD1', 232.33)
3 /
1 row created.
SQL> INSERT INTO state_income
2 VALUES ('FL', 'PERIOD1', 345.21)
3 /
1 row created.
SQL> -- the basic query:
SQL> SELECT SUBSTR (time_periods.period, 1, 10) period,
2 SUM (DECODE (name, 'AK', income)) "AK",
3 SUM (DECODE (name, 'CA', income)) "CA",
4 SUM (DECODE (name, 'DE', income)) "DE",
5 SUM (DECODE (name, 'FL', income)) "FL"
6 FROM state_income, time_periods
7 WHERE time_periods.period = state_income.period (+)
8 AND time_periods.period IN ('PERIOD1','PERIOD2','PERIOD3')
9 GROUP BY ROLLUP (time_periods.period)
10 /
PERIOD AK CA DE FL
PERIOD1 1222.23 2423.2 232.33 345.21
PERIOD2
PERIOD3
1222.23 2423.2 232.33 345.21
SQL> -- package that dynamically executes the query
SQL> -- given variable numbers and values
SQL> -- of states and periods:
SQL> CREATE OR REPLACE PACKAGE package_name
2 AS
3 TYPE cursor_type IS REF CURSOR;
4 PROCEDURE procedure_name
5 (p_periods IN VARCHAR2,
6 p_states IN VARCHAR2,
7 cursor_name IN OUT cursor_type);
8 END package_name;
9 /
Package created.
SQL> CREATE OR REPLACE PACKAGE BODY package_name
2 AS
3 PROCEDURE procedure_name
4 (p_periods IN VARCHAR2,
5 p_states IN VARCHAR2,
6 cursor_name IN OUT cursor_type)
7 IS
8 v_periods VARCHAR2 (1000);
9 v_sql VARCHAR2 (4000);
10 v_states VARCHAR2 (1000) := p_states;
11 BEGIN
12 v_periods := REPLACE (p_periods, ',', ''',''');
13 v_sql := 'SELECT SUBSTR(time_periods.period,1,10) period';
14 WHILE LENGTH (v_states) > 1
15 LOOP
16 v_sql := v_sql
17 || ',SUM(DECODE(name,'''
18 || SUBSTR (v_states,1,2) || ''',income)) "' || SUBSTR (v_states,1,2)
19 || '"';
20 v_states := LTRIM (SUBSTR (v_states, 3), ',');
21 END LOOP;
22 v_sql := v_sql
23 || 'FROM state_income, time_periods
24 WHERE time_periods.period = state_income.period (+)
25 AND time_periods.period IN (''' || v_periods || ''')
26 GROUP BY ROLLUP (time_periods.period)';
27 OPEN cursor_name FOR v_sql;
28 END procedure_name;
29 END package_name;
30 /
Package body created.
SQL> -- sample executions from SQL:
SQL> VARIABLE g_ref REFCURSOR
SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2,PERIOD3','AK,CA,DE,FL', :g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
PERIOD AK CA DE FL
PERIOD1 1222.23 2423.2 232.33 345.21
PERIOD2
PERIOD3
1222.23 2423.2 232.33 345.21
SQL> EXEC package_name.procedure_name ('PERIOD1,PERIOD2','AK,AL,AR', :g_ref)
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
PERIOD AK AL AR
PERIOD1 1222.23
PERIOD2
1222.23
SQL> -- sample execution from PL/SQL block
SQL> -- using parameters derived from processing
SQL> -- cursors containing results of other queries:
SQL> DECLARE
2 CURSOR c_period
3 IS
4 SELECT period
5 FROM time_periods;
6 v_periods VARCHAR2 (1000);
7 v_delimiter VARCHAR2 (1) := NULL;
8 CURSOR c_states
9 IS
10 SELECT state
11 FROM states;
12 v_states VARCHAR2 (1000);
13 BEGIN
14 FOR r_period IN c_period
15 LOOP
16 v_periods := v_periods || v_delimiter || r_period.period;
17 v_delimiter := ',';
18 END LOOP;
19 v_delimiter := NULL;
20 FOR r_states IN c_states
21 LOOP
22 v_states := v_states || v_delimiter || r_states.state;
23 v_delimiter := ',';
24 END LOOP;
25 package_name.procedure_name (v_periods, v_states, :g_ref);
26 END;
27 /
PL/SQL procedure successfully completed.
SQL> PRINT g_ref
PERIOD AK AL AR CA DE FL
PERIOD1 1222.23 2423.2 232.33 345.21
PERIOD2
PERIOD3
PERIOD4
1222.23 2423.2 232.33 345.21 -
How to generate pdf report and automatically save in the folder?
Hi all,
I want to ask, how to generate pdf report and automatically save in the folder?
Actually, if i run pdf report and show to screen. Now do not need to show to the screen but save the pdf file in the folder.
If anyone know, please share to me.
Thanks and regards,
IwanHi all,
Thanks for the reply.
when i run pdf report, and i got this URL to show the pdf report.
http://190.180.55.73:7778/reports/rwservlet/getjobid3828?server=sitcnrepsvr
Do any body know where can i get this pdf report that i have run in application server report folder ?
Thanks and regards,
Iwan -
How to generate PDF from file with linked images
Hi,
did anybody met/solved problem how to create PDF form file, which contains links to another files/images using PDFGenerator? For example from FrameMaker documents which contains linked images; or from CAD files which contains linked components...
The issue is, that the CreatePDF function moves the source file into a temporary folder, and this operations "brokes" the relative links to linked/included files.
Regards,
Radekhi
was your problem solved,if not email me [email protected], will try to help you -
Merging a PDF with bookmark as a child of a bookmark node
I have already developed a plugin that merges several PDF's and generates bookmarks
But there is one issue
If a PDF already has bookmarks, I dont see the bookmarks inserted after that pdf file, instead they appear as a sibling of the root.
I have tried using
PDDocInsertPages(pdDoc1,PDLastPage ,pdDoc2, 0, PDAllPages ,PDInsertBookmarks, NULL,NULL,NULL,NULL);.
This is probably causing the bookmarks to show up as siblings of the root
as well as
PDDocInsertPages(pdDoc1,PDLastPage ,pdDoc2, 0, PDAllPages ,PDInsertAll, NULL,NULL,NULL,NULL);
Any suggestions as to how to add a PDF file with bookmarks as a child of an existing bookmark , so that all the bookmarks of this PDF file will be children of the node under which this file is added
Also i need to know, if by doing this will it preserve the bookmark actions of the PDF file will be preserved
Thanks
Swapneel> Also i need to know, if by doing this will it preserve the bookmark actions of the PDF file will be preserved
If the bookmark action is to go to a specific page, no it will not be preserved as the page numbers will be different once the documents are merged (except for the first document in the merge).
If the bookmarks used named destinations then yes, they will be preserved (assuming you don't have the same named destination in more than 1 file being merged). -
How to generate PDF automatically.
Hello,
I am generating INVOICES using REPORTS 6i.
After created the PDF format, I send to the customer by email.
I would like to do this process automatically.
So how can I generate PDF automatically?
There is any pl/sql functionality available to generated PDF automatically.If so how can I generate similar like report 6i format and symbols (Logo).
Pls give me some ideas.
Thanks,Kannan.KKannan,
a scheduler is part of Reports, with which you can automate to generate Reports. There's a Queue Manager with your installation. But for this you need Application Server based Reporting - not Client/Server.
Also it's possible to send an PDF-Report as an EMail-attachment directly. Starting with 9i there's also an PL/SQL-API available (Event-based Reporting).
regards
Rainer
Maybe you are looking for
-
Print a report directly to the printer
I need to print a report directly to the printer in Oracle Forms and Report 11g without a preview in the browser
-
I have tried 4 days to get iTunes 10.4 working on my Win7 x64 machine. I purchased a new iPhone4 and after syncing it the first time, I can't connect to the iTunes store. When I try to run iTunes Help, I get this message "iTunes Help is unavailable
-
Creating a simple scaling RollOver
I'm trying to create a simple scaling rollover effect for some buttons using actionscript 3. In my file I have two buttons, the first button has the proper beginning and ending states, but lacks the animation in between. The second button has the pro
-
Hi, I am using coldfusionmx6 and created function.while it calling in xml it giving space.How to delete space? <cffunction name="datereplaceformat" returntype="string"> <cfargument default="" name="datechange" required="No"> <cfargument default=
-
Help ! Blue Screen Lenovo T61 (6457)
hi, I receive a blue screen with the next error: UMOUNTABLE_BOOT_VOLUME and: *** STOP: 0X000000ED (0x8A73D4B8,0xC0000006,0x00000000, 0x00000000) The operating system is XP. Please advice what to do ? Thanks, Doron Solved! Go to Solution.