How to get the cropped page content
Consider an A4 size pdf is cropped in Bottom and Right edges.
If the user wants to open the pdf as A4 size then we are passing the rectangle size A4 to PDPage.DrawEx() method to get the page content.
When we use like this, we are getting the full page content but our requirement is to get the cropped page content.
Is there any way to get the cropped portion alone by passing the rectangle size as A4 to PDPage.DrawEx() method.
But it is working fine for Left and Top edge cropping
Have a look at this document:
http://partners.adobe.com/public/developer/en/acrobat/sdk/AcroJSGuide.pdf
go to the index and search for the term "Crop" or "Cropping" which has a hyperlink for page 70. There you will find some JavaScript options for cropping the page from all sides which can then be saved using some other methods in the document. I'm not sure, though, if JavaScript is what you're looking for.
Similar Messages
-
How to get the last page SAP Script form
How to get the last page SAP Script form.
I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
RegardsHi
You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
From SAP Help:
This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
/: IF &NEXTPAGE& = '0'
Last page
/: ENDIF
Max -
How to get the current page URL
HI All
I am working in oracle apps 4.0
I have one page called history in that i have one page item called Application url. My application id is 122 but its a copy of application 106
How to get the current page url for the page item.
Any steps should be help ful
Thanks & Regards
Srikkanth.MI'm not 100% clear on what the requirement is from the description, however it does sound like you are making things unnecessarily complicated.
If you want permanent/ID-independent links then use application and page aliases.
so here we used to display the url like this: <tt>{noformat}http://81.131.254.171:8080/apex/f?p=122{noformat}</tt>
Do you mean that the URL is displayed like that? If so that doesn't seem particularly helpful. How is anyone supposed to know what it is?
There are many ways to provide links in APEX—including lists and nav bars.
Where the link is to another resource located on the same server (such as another page in the same app, or a different app in the workspace), relative addressing can be used, making it unecessary to include scheme, domain and port information in the URL. For example, if the page to be linked to has a page alias <tt>ABOUT</tt> in an application with alias <tt>UNITY</tt>, and the apps share an authentication scheme/cookie to permit shared sessions, then the link URL is simply
f?p=UNITY:ABOUT:&APP_SESSION. -
How to get the total pages in ALV report?
Hi guys,
Since I used page breaks can somebody please help me on how to get the total pages in ALV report?sincerely please...thanks guys.automatic display total page.
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
r -
How to get the Empty page in Webi report
Hi,
I have to insert the charts in the report but i don't have the space to insert the charts in same page so i need one more page how to get the blank page in report
thanks,turn your report from Page Layout to Draft Mode. Than you will be able to insert chart in it.
You can view Web Intelligence reports in different modes depending on how you want to work with data and how you want the data to appear.
1. In Web Intelligence Interactive, select the report tab of the report you want to view.
2. Click the arrow next to the View button on the main toolbar above the report.
3. Select the viewing mode.
4. In the Java Report Panel or Web Intelligence Rich Client, use Switch Page/Quick Display on the Reporting toolbar to alternate between Page mode and Quick Display mode.
Edited by: srrachna on Apr 22, 2011 2:25 PM -
How to get the jsp page name in jsp?
how to get the jsp page name in jsp? how the jsp get the jsp page name dynamic.
thanks in advance.Try request.getServletPath()
-
How to get the Portal Page name from PLSQL?
Can anyone tell me how to get the portal page name from my dynamic page using plsql?
Apparently you can get the page id and work it out from there, but my calls to get the page id are not returning any values anyway.
My code for attempting to get the page id is below.
<oracle>
declare
v_pageid varchar2(30);
begin
v_pageid := wwpro_api_parameters.get_value('_pageid', '/pls/portal30');
htp.print('Page is '|| v_pageid);
end;
</oracle>
Ideally I'd actually just like to get the page name. Is there a straightforward way to do this?
Thanks in advance!
SarahFew clarifications -
1. wwpro_api_parameters cannot be used to get default portal
page parameters such as '_pageid', '_dad', '_schema' etc.,
2. Page information can be obtained through any components which
are available in that particular page. For example, in case of
dynamic page, we need to publish it as a portlet and add it to the
page. This process creates necessary packages in the DB, but we
will not have access to the portlet methods.
So, I would prefer creating a simple DB provider & portlet and access
page title from its show method as follows -
//Declare local variable l_page_id, l_page_title as varchar2
select page_id into l_page_id from wwpob_portlet_instance$ where
portlet_id = p_portlet_record.portlet_id and
provider_id = p_portlet_record.provider_id;
select name into l_page_title from wwpob_page$ where id=l_page_id;
More information on DB provider can be found at
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/articles/understanding.database.providers.html
Secondly, usage of wwpro_api_parameters.get_value method is
incorrect. This method expects two arguments -
<ul>
<li><b>p_name : </b> The name of the parameter to be returned.</li>
<li><b>p_reference_path : </b> An unique identifier for a portlet instance on the current page.</li>
</ul>
p_reference_path would be something like 99_SNOOP_PORTLET_76535103 and not some type of path as its name suggests.
The following code fragment fetches all parameters available
for a portlet.
Note : Copy this code into 'show' method of your portlet.
//Declare l_names, l_values as owa.vc_arr
* Retreive all of the names of parameters for this portlet
l_names := wwpro_api_parameters.get_names(
p_reference_path=>p_portlet_record.reference_path);
* Retreive all of the values of parameters for this portlet
l_values := wwpro_api_parameters.get_values(p_names=>l_names,
p_reference_path=>p_portlet_record.reference_path);
//Loop through these arrays to get parameter information
htp.p('<center><table BORDER COLS=2 WIDTH="90%" >');
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(wwui_api_portlet.portlet_heading('Name',1));
htp.tableData(wwui_api_portlet.portlet_heading('Value',1));
htp.tableRowClose;
if l_names.count = 0 then
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.p('<td COLSPAN="2">'
||wwui_api_portlet.portlet_text(
'No portlet parameters were passed on the URL.',1)
||'</td>');
htp.tableRowClose;
else
for i in 1..l_names.count loop
htp.p('<tr ALIGN=LEFT VALIGN=TOP>');
htp.tableData(l_names(i));
htp.tableData(l_values(i));
htp.tableRowClose;
end loop;
end if;
htp.p('</table></center>');
Hope it helps...
-aMJAD. -
Quick question: How to get the scrolled page number using af:table
Hi,
When using range paging on scrolled table, how to get the current scrolled page number(1,2,3...), for example when moving the table vertical scroll bar forward or backward, is there any method in ViewObjectImpl class that I can use to get such information? I have seen the method scrollToRangePage(int i), but when scrolled ("Fetching data..."), it doesn't not get into this method. So it is wrong usage for this method, right?
ThanksDidn't you just ask that question in this thread?: How to catch the page number when using scroll table in ADF 11g?
A bit of patience might be in order.
CM. -
How to get the total page number when using Crystal Report in JSP
In my JSP, I use the class CrystalReportViewer to generate and display the report views. But this class only sypply the function to get the info of the active view.
Thus with this info, I only can get the active view's page number. How can I get the report total page number without showing the last page first?
Thanks.Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form. -
How to get the full file content in the spool
Hi,
I am reading one fine from application server. I am getting all that content into one internal table. Again I am trying to write that one into spool. I am creating one spool by using
CALL FUNCTION 'GET_PRINT_PARAMETERS'
EXPORTING
DESTINATION = P_PADEST
DESTINATION = lv_dest
LIST_NAME = lv_name
LIST_TEXT = P_LNAME
LIST_TEXT = 'Label Print'
IMMEDIATELY = 'X'
RELEASE = ' '
NEW_LIST_ID = 'X'
EXPIRATION = 9
LAYOUT = 'X_65_80'
SAP_COVER_PAGE = ' '
RECEIVER = SY-UNAME
DEPARTMENT = 'SYSTEM'
NO_DIALOG = 'X'
IMPORTING
OUT_PARAMETERS = IS_PARAMS
VALID = V_VALID.
but in the spool i am not getting full content. In the internal table i am getting full content but in the spool some 5 to 6 lines are truncating at the last. How can i get the full content? For this i need to do any settings?
Pls suggest reg this.may be the rest of the data is in another page. how many pages your spool showing. just check in SP01 . from menu Goto -> Display Requests -> Settings ->
change the page numbers to view the other pages. -
How to get the actual page cordinate a field
I have 2 content areas CA1, CA2. CA1 is filled with dynamic table..which will flow into multiple page..at the end of the table I want the signature ..The signature has to be upper half of the page..since contents of the table are dynamic..it could be that the content could fill 3/4 of last page..so in which case I have to page break and go to next page and printed on the positioned place.
The layout is flowed so it can overflow..I was planning to trigger a page break by putting a dummy field after the table and calculate the position of the dummy field with 0 width, 0 height which will be right after the table. If the position (dummyfield.y) has reach more than the upper half of the page.. it will trigger next page where the signature will be printed in the first half of the page in CA2...
But dummyfield.y always gives me a 0..because it is with respect to the previous container or something.. Any one with brighter ideas...
thanksIf you want to read cell level or row level data from excel you should use third party APIs. Apache POI provides such an API, you can use and read the excel documents. You can refer the POI API
<a href="http://poi.apache.org/hssf/quick-guide.html#ReadWriteWorkbook">here</a>.
And if you want to read the CSV file content do the following..
FileInputStream fis=(FileInputStream)wdContext.currentContextElement().get<attribute anme>().read(false);
byte in[] = new byte[512];
String csvData;
StringBuffer csvBuffer = new StringBuffer();
while(fis.read(in)>0)
csvData = new String(in);
csvBuffer.append(csvData);
//now write the logic to validate the csv data.
Regards
Abhilash -
I Can't figure out if it is possible to retrieve/install the Organizer page after only the Editor page installed on Elements 12. If it is possible, how do I do it?
When I launch PSE 12 directly I do get the "welcome" screen first. If I then click on the Organizer box it gives the moving line for a bit, and then nothing more: no Organizer screen ever appears. However when I click on the Editor box the Editor screen does come up after the moving line starts.
By the way, I've long used PSE 10, and that still works for both screens, so I'm now having to jerryrig the post production process by using the Organizer screen from version 10 to access my photos and then drag them to the Editor screen from version 12 !
I bought PSE 12 because it accomodates/processes/edits in RAW, where version 10 doesn't. I sure don't want to have to pay for version 13, and Adobe chat no longer supports version 12, so any help you can offer would be wonderful !!!
By the way -- in addition, a very useful plug-in (Nik Collection) that i've come to love to use with version 10 doesn't appear with version 12's Editor screen at all. So if you have any thoughts about how to fix that I would really appreciate that too !
Thanks in advance. -- Jessie
Sent via the Samsung Galaxy Note® II, an AT&T 4G LTE smartphone -
How to get the customized page's xml version ?
Hi All,
I have created some fields (of style 'MessageChoice', 'MessageLovInput') through personalization in a page and after that i navigated to the middle-tier where our MDS repository holding all the page's source file (in form of XXXXPG.xml) to get the updated version of the same page in xml version.
But i couldn't get the latest version of page's XML file instead i found the old standard file only.
Please help me in getting the file and guide me the path if it got stored somewhere in the architecture.
Thank You,
ThiyagarajanDear Anoop,
Thanks for your immediate response.
Could you please pour your ideas how to store the custom personalizations in Unix box through Functional Administrator responsibility ?
And one more question is as you said it will be stored in the form of xml but i have searched the page in the middle tier where it(standard one) got stored, but unable to find any one. How to find the xml file after doing the personalizations and in which path ?
Waiting for your reply.
Thank You,
Thiyagarajan -
How to get the Report Page count using crystal reports 2008
Hi,
I have to implement a business logic where in i will have to display the no. of pages generated for the report
Say for e.g. crytal report that's generated spans 25 pages in the report.
Then i will have to display a message to the user after the report generation something like "25 Pages generated"
So, how would i get this report page count so that i can fetch the value and display the same to the user.
Any sample code snippet would be of great help.
Thanks in Advance
Regards,
RamnathHi,
I am using crystal reports 2008 and i visited the link forwarded in your previous mail and got the solution for getting the lastpagenumber of the report.
nPages = crReport.FormatEngine.GetLastPageNumber(New CrystalDecisions.Shared.ReportPageRequestContext)
but, i don't find FormatEngine property for ReportDocument object.
I just wanted to know whether this property is availale in crystal reports 2008 or should i even install any service packs for this.
Please find below the namespaces that importing in my class
Imports System.Windows.Forms
Imports System.Drawing.Printing
Imports CrystalDecisions.CrystalReports.Engine
Imports CrystalDecisions.Shared
Imports CrystalDecisions.Windows.Forms
Imports CrystalDecisions.CrystalReports.ViewerObjectModel
Imports CrystalDecisions.Shared.ReportPageRequestContext
Please let me know how can i get the formatEngine property for reportdocument object
Thanks in Advance
Regards,
Ramnath -
How to get the home page for a user using Pl/sql code ?
Hi,
I have a pl/sql procedure which runs after a form submission on a dynamic page. At end of completion of the procedure I want to send user to his/her home page. I am trying to write at the end of procedure to redirect the user to the home page. How do I do that ? What is way to redirect to a page using pl/sql and how do I know the user home page url ?
thanks,
MainakHi,
Try <portalschema>.wwv_redirect.url('<portalschema>.home');
Please replace portalschema with the name of your portal schema.
Thanks,
Sharmila
Maybe you are looking for
-
I have recently converted to Mac (yay!) and have created all of my calendars in iCal. I'm wondering if anyone can help me with iCal and appointment clashing? My problem is that sometimes I have meetings which are fortnightly and some which are weekly
-
Hello! I have the Acrobat XI test version installed, got the registration Mail and confirmed it. When i have the program opened and try to convert the file from a pdf to a word and press the convert button, it shows a the message "application failed"
-
Oracle Developer 6.0 connect with po7.2
dear developers, i have personal oracle 7.2 and developer 6.0 beta i installed both on same home. after installation i get oracle net8 easy configuration under oracle for window95 but when i click on it no action is done. how can i connect to my po7.
-
Is Time Capsule a Floored Device?
So I have had my TC for around 5 weeks now. I love the concept of the device, as I'm sure many of you do. But, you may disagree, & I don't really want to say it but, TC is a floored device. Their was never a question of me returning the device, withi
-
I would like to do two distinct things at two different times: 1) compare info simultaneously using acrobat professional 7.0 from two separate pdfs.; 2) create two applications of acrobat professional (similar to Microsoft Word) on one screen so all