On writing on pdf
I cannot write on pdf as I used to. What do I get back to do it?
Hi, Jack.
Edit: I see Kappy has recommended ScribbleScreen. This permits you to write atop the existing screen, but your annotations do not become part of the PDF file itself. My answer below is from the viewpoint that you want to not only make real-time annotations, but to also add those annotations to the file.
I presume you are writing about annotating PDFs in Preview. It is possible to annotate PDFs — assuming the document's security permits this — using Preview, Adobe Reader, and Adobe Acrobat.
Unfortunately, the answer appears to be "No" in Preview and Adobe Reader. Adobe Acrobat has a set of Drawing tools, including a Pencil tool that would permit one to do some crude handwriting atop the document, but each "letter" is its own image.
Also, since Adobe Acrobat allows one to paste graphics into a PDF, you could try using the Drawing mode of Ink to handwrite a note and then attempt to Send it to Acrobat. Again, document security controls whether or not you can make changes to a given PDF.
In general, all three applications support text annotations as typed notes.
You're correct about the issue of being unable to change fonts in Preview's text annotations. This appears to be a bug. I selected some text in an annotation, Control-clicked the selected text, selected Show Fonts from the contextual menu, but changes made in the Font Palette were not reflected in the selected text.
Since you indicated you teach this math class "online" you might want to look into the features of the online facility you are using if you are teaching it live. For example, if you're using an online meeting service like WebEx, this might permit you to make handwritten annotations on the screen in which you and your students are seeing a specific PDF, but these notes would not be part of the PDF file itself.
Good luck!
Dr. Smoke
Author: Troubleshooting Mac® OS X
Similar Messages
-
Am getting a slight color shift when exporting from InD to Acrobat PDF... slight shift towards a more magenta tint... see attached.
http://peterpica.com/comparison.pdf
All colors are process in source file and am writing to standard print-ready (4/c) PDF format.
Any ideas?The PDF you included also previews correctly, so something is probably up with your Acrobat CM settings. The output numbers also match between ID and Acrobat.
What happens if you open Output Preview? Make sure the Simulation Profile is set to your ID profile (SWOP): -
Hi All,
I need to add a line of text/string to about
1000 or so number of pdf files. whats the best
way of writing this string to the pdf file.
Has anyone done this using java/javascript.
If so could you please tell the best solution
or provide some code samples.
Thanks
laredI know there is an API available from http://www.adobe.com for java (90% sure). I'd suggest starting there.
-
Until recently under Tools I had the option to write on pdf. Not any more. What can I do to restore to writing?
[discussion moved to Creating, Editing & Exporting PDFs forum.]
-
I need help writing to a PDF which is not allowed, is there someway to over ride this problem so it can be done? I have to share this file so others can input there information into the same without deleating what is already there?
you folks are the best.
NContact Customer Care and click on the Still need help? button to chat with an agent.
[topic moved to ExportPDF forum] -
I have three spreadsheets sent to me in PDF format. Unfortunately, although I can see them, I cannot write on them. Is there an easy fix or just a fix?
Not with the free Reader no.
It's best to get the original spreadsheets and use them. Short of that, you would need Acrobat to create fillable fields that you could fill in but that would probably be a pain. -
Writing flattened PDF on disk !!
Hi,
Please help me on this.
I have a livecycle process which uses a template PDF Form and a process variable ( XML Form Data ). In this long lived process there are multiple steps (users, operations etc.). At the LAST Step I need to write a flattened PDF file (Template Form with final XML Data) on disk.
The way I tried:
Step: 1 -
Placed a generatePDFOutput service, Here I merge template with xml form data,
Output stored in another process variable 'outDoc' of document type.
Step: 2 -
Place a Write Document service next to above step. Input document - outDoc (output doc of previous step)
Set others parameters, In Pathname Patterns I have just set the directory path.
But when I am running this, it is giving an error.
Error-
com.adobe.workflow.datatype.InvalidCoercionException: Cannot coerce object: <document state="passive" senderVersion="3" persistent="true" senderPersistent="false" passivated="true" senderPassivated="true" deserialized="true" senderHostId="127.0.0.1//////////192.168.1.200///////" callbackId="0" senderCallbackId="0" callbackRef="null" isLocalizable="true" isTransactionBound="false" defaultDisposalTimeout="600" disposalTimeout="600" maxInlineSize="65536" defaultMaxInlineSize="65536" inlineSize="28332" contentType="application/pdf" length="-1"><cacheId/><localBackendId/><globalBackendId/><senderLocalBackendId/><senderGlobalBackendId/><inline>%PDF-1.7
%����
32 0 obj
<</Filter/FlateDecode/First 15/Length 220/N 3/Type/ObjStm>>stream
hO�
�@...</inline><senderPullServantJndiName>adobe/idp/DocumentPullServant/adobejb_server1</senderPullServantJndiName><attributes CONTENT_TYPE="OUTPUT_DATA" RESULT_REPORT="[B@1aeb36f" basename="052263c11ee0a2f8b0a688d8926726f6" file="C:\Windows\Temp\AdobeDocumentStorage\local\docm1294992843250\052263c11ee0a2f8b0a688d8926726f6" wsfilename="C:\Windows\Temp\AdobeDocumentStorage\local\docm1294992843250\052263c11ee0a2f8b0a688d8926726f6"/></document> of type: com.adobe.idp.Document to type: java.lang.Integer
at com.adobe.workflow.dom.VariableAttr.setBoundValue(VariableAttr.java:69)
at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionContextImpl.java:796)
at com.adobe.workflow.engine.PEUtil.invokeAction(PEUtil.java:926)
at com.adobe.workflow.engine.SynchronousBranch.handleInvokeAction(SynchronousBranch.java:510)
at com.adobe.workflow.engine.SynchronousBranch.execute(SynchronousBranch.java:888)
at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBean.java:2797)
at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncContinueBranchCommand(ProcessEngineBMTBean.java:2551)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:173)
at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:77)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
at $Proxy410.asyncContinueBranchCommand(Unknown Source)
at com.adobe.idp.workflow.dsc.service.ProcessCommandExecutorService.continueBranch(ProcessCommandExecutorService.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.adobe.idp.dsc.component.impl.DefaultPOJOInvokerImpl.invoke(DefaultPOJOInvokerImpl.java:118)
at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker.invoke(WorkflowDSCInvoker.java:154)
at com.adobe.idp.dsc.interceptor.impl.InvocationInterceptor.intercept(InvocationInterceptor.java:140)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.DocumentPassivationInterceptor.intercept(DocumentPassivationInterceptor.java:53)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor$1.doInTransaction(TransactionInterceptor.java:74)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTransactionCMTAdapterBean.java:357)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doSupports(EjbTransactionCMTAdapterBean.java:227)
at sun.reflect.GeneratedMethodAccessor696.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:378)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
at org.jboss.ejb.Container.invoke(Container.java:960)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:430)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:103)
at $Proxy378.doSupports(Unknown Source)
at com.adobe.idp.dsc.transaction.impl.ejb.EjbTransactionProvider.execute(EjbTransactionProvider.java:104)
at com.adobe.idp.dsc.transaction.interceptor.TransactionInterceptor.intercept(TransactionInterceptor.java:72)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvocationStrategyInterceptor.intercept(InvocationStrategyInterceptor.java:55)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.InvalidStateInterceptor.intercept(InvalidStateInterceptor.java:37)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterceptor.java:165)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.interceptor.impl.JMXInterceptor.intercept(JMXInterceptor.java:48)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptorChainImpl.java:60)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:121)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:129)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessageReceiver.java:93)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:225)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispatcher.java:66)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.workflow.engine.PEContinueBranchCommand.execute(PEContinueBranchCommand.java:91)
at com.adobe.workflow.workadapter.WorkflowCommandExecutionUnit.execute(WorkflowCommandExecutionUnit.java:22)
at com.adobe.idp.dsc.workmanager.adapter.ManagedAsynchronousWorkAdapter.run(ManagedAsynchronousWorkAdapter.java:70)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:275)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
at java.lang.Thread.run(Thread.java:619)
Please help me on this.
Thanks in advance.
AbhinavMake sure to set the "PDF Output" from the Output section and not the "Output Result" from the Additional Result to your document variable.
PDF Output uses a document variable where Output Result takes a OutputResult data type.
Somehow the error is saying you're trying to put document variable into an integer.
What are you settings for the Write Document operation?
Jasmin -
Writing on PDF's using Pages?
Hello,
Trying to figure out how to write notes/highlight, etc on PDF files. Using Preview the textbook does not work...is there a way to export to Pages? Trying to avoid purchasing Pdfpen program...thanks!
Lost grad student, help!Hi ssj829;
I needed to change a locked PDF at work. What I did was to open the PDF in Photoshop and then create a layer to blank out the areas I had to change. Once I had all of the areas blanked out, I created another layer which had the new data in it. Once I combined all the layers, I had a document which reflected the required changes.
Allan -
Sorry, here's the code for 2 solution in writing a pdf to file
//First solution
String outfile = "D:\\At Work\\Tags\\Release 3.7\\2476\\output.pdf";
PdfReader r1 = new PdfReader("D:\\At Work\\Tags\\Release 3.7\\2476\\textfield.pdf");
PdfStamper stamper = new PdfStamper(r1,new FileOutputStream(outfile));
stamper.close();
//Second Solution
String outfile = "D:\\At Work\\Tags\\Release 3.7\\2476\\output.pdf";
PdfReader r = new PdfReader("D:\\At Work\\Tags\\Release 3.7\\2476\\textfield.pdf");
PdfCopyFields copy = new PdfCopyFields(new FileOutputStream(outfile));
copy.addDocument(this);
copy.close();Please use reply, not post new threads.
-
We have a technical application that produce 3D drawings of roofscapes. We are not based on a CAD platform and the 3D is rendered in OpenGL.
We would like to be able to generate the 3D model in PDF's that can be shared easily among anyone with a reader.
Is the SDK available for this? How much is it?
Where can I see 3D drawing samples?
Best regards
/ Mats, SwedenAs long as your application is using the OpenGL renderer you should be able to use the Acrobat 3D application's 3D Capture feature to generate PDFs containing 3D annotations of the model. Have you tried the Acrobat 3D Trial?
-
URLConnection writing a PDF file
Hi all,
Does anybody know a way to write a URLConnection where the connected Servlet writes a PDF file?
I mean, Servlet1 connects to Servlet2 and Servlet2 writes a pdf file to the connection and Servlet1 has to write to the browser.
Thank you,
Denis.Hi Denis,
The following are the steps you need to follow in your servlet2.
StringBuffer output = new StringBuffer();
URL firstServletURL = new URL("the first url");
URLConnection firstServlet=first.openConnection();
firstServlet.setDoInput( true );
firstServlet.setUseCaches( false );
BufferedInputStream in = new BufferedInputStream (firstServlet.getInputStream() );
int oneByte;
while(( oneByte = in.read( ) ) >= 0)
output.append( (char) oneByte );
in.close();
out.println(output.toString());
thanks,
Sriram -
Trouble writing PDF out of Framemaker 7.1
Hello,
I have an old version of Framemaker, 7.1, and I'm having trouble writing a pdf. Our office is all Windows based. On two machines, when I write the pdf, I can't get it to create crop marks and I lose chucks of text, indents are changed and spacing between paragraphs are changed. On a third machine, I get the pdf to render just fine with the crop marks. The settings we use on all three machines is the same. The problem I have is, the good PC is leaving next week when the owner goes traveling on buisness.
Can anyone offer me any suggestions, please? Thank you.
JeffMy first suggestion would be to provide us with some more info. ;- )
Your OS, exact version of FM(from Help > About -- the p number), version of Acrobat, and anything else that seems relevant.
Or to cut to the chase, you could confirm that you have the highest patch levels of FM and Acrobat, and if you have XP, that you're also fully patched there -- including the Microsoft HotFix for PS printers (such as Acrobat) -- http://support.microsoft.com/?id=952909 -- it applies to all PS printers, including the logical PDF you're using, and one of the fixes is the missing text you mentioned.
Cheers,
Art -
PDF issue while writing to application server
Hi Guys,
I am writing my PDF file into application server but there is an additional line coming up in the file after EOF as below. This additional line creates a new blank page when they take printout from web service.
%%EOF#
ef0 R0000 nRA )Tj##########################################
Steps I am using are :
1. Convert smartform into PDF with CONVERT_OTF_2_PDF
2. Write returned PDF lines into application server with below code.
OPEN DATASET lv_filename FOR OUTPUT IN BINARY MODE .
LOOP AT lt_lines INTO ls_tline.
TRANSFER ls_tline TO lv_filename .
ENDLOOP.
I have checked smartform but no windows are overlapping or out of margin. I tried some cleaning code from GUI_UPLOAD also but still same additional lines are coming. I tried CONVERT_OTF also. Pls advice..
Thanks..
SDHi John,
Try the following code which will lead you to the solution
REPORT ZTEST_SMARTFORM_2_PDF.
DATA: it_otf TYPE STANDARD TABLE OF itcoo,
it_docs TYPE STANDARD TABLE OF docs,
it_lines TYPE STANDARD TABLE OF tline,
st_job_output_info TYPE ssfcrescl,
st_document_output_info TYPE ssfcrespd,
st_job_output_options TYPE ssfcresop,
st_output_options TYPE ssfcompop,
st_control_parameters TYPE ssfctrlop,
v_len_in TYPE so_obj_len,
v_language TYPE sflangu VALUE 'E',
v_e_devtype TYPE rspoptype,
v_bin_filesize TYPE i,
v_name TYPE string,
v_path TYPE string,
v_fullpath TYPE string,
v_filter TYPE string,
v_uact TYPE i,
v_guiobj TYPE REF TO cl_gui_frontend_services,
v_filename TYPE string,
v_fm_name TYPE rs38l_fnam.
CONSTANTS c_formname TYPE tdsfname VALUE 'ZTEST'.
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = v_language
i_application = 'SAPDEFAULT'
IMPORTING
e_devtype = v_e_devtype.
st_output_options-tdprinter = v_e_devtype.
*st_output_options-tdprinter = 'locl'.
st_control_parameters-no_dialog = 'X'.
st_control_parameters-getotf = 'X'.
.................GET SMARTFORM FUNCTION MODULE NAME.................
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = c_formname
IMPORTING
fm_name = v_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
...........................CALL SMARTFORM............................
CALL FUNCTION v_fm_name
EXPORTING
control_parameters = st_control_parameters
output_options = st_output_options
IMPORTING
document_output_info = st_document_output_info
job_output_info = st_job_output_info
job_output_options = st_job_output_options
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSE.
.........................CONVERT TO OTF TO PDF.......................
CALL FUNCTION 'CONVERT_OTF_2_PDF'
IMPORTING
bin_filesize = v_bin_filesize
TABLES
otf = st_job_output_info-otfdata
doctab_archive = it_docs
lines = it_lines
EXCEPTIONS
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
OTHERS = 3.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
........................GET THE FILE NAME TO STORE....................
CONCATENATE 'smrt' '.pdf' INTO v_name.
CREATE OBJECT v_guiobj.
CALL METHOD v_guiobj->file_save_dialog
EXPORTING
default_extension = 'pdf'
default_file_name = v_name
file_filter = v_filter
CHANGING
filename = v_name
path = v_path
fullpath = v_fullpath
user_action = v_uact.
IF v_uact = v_guiobj->action_cancel.
EXIT.
ENDIF.
..................................DOWNLOAD AS FILE....................
MOVE v_fullpath TO v_filename.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
bin_filesize = v_bin_filesize
filename = v_filename
filetype = 'BIN'
TABLES
data_tab = it_lines
EXCEPTIONS
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
OTHERS = 22.
IF sy-subrc 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF. -
Urgent: Issue while displaying the PDF Reports Using XDO Common region
Hi all,
In our product code we are trying to display the PDF Reports, using the xdo common region.
Previously we were writing the pdf reports direclty onto the response direclty.
This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
XDOUtility.retrieveReport(xdoOutput,
parameters,
prop,
appMod
BlobDomain bxdoOutput = new BlobDomain();
bxdoOutput.setBytes(xdoOutput.toByteArray());
String redirectURL = DocumentHelper.getOutputURL(pageContext,
bxdoOutput,
"Report",
"PDF");
OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
outRegion.setHTMLAttributeValue("src", redirectURL);
outRegion.setHTMLAttributeValue("width", "100%");
outRegion.setHTMLAttributeValue("height", "100%");
outRegion.setHTMLAttributeValue("title","Report");
outRegion.setHTMLAttributeValue("name","Report");
pageContext.getPageLayoutBean().addIndexedChild(outRegion);
This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
When we click on these links, a new session starts in the xdo common region.
Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
Regards
SandeepHi all,
In our product code we are trying to display the PDF Reports, using the xdo common region.
Previously we were writing the pdf reports direclty onto the response direclty.
This displays the report onto the browser but if navigate throw browser back button, it doesn't displays the report as the response stream is empty while navigating through back button.
So to solve this issue, i tried to write the report using the OAHTMLWebBean and xdo common region. Here is the code:
ByteArrayOutputStream xdoOutput = new ByteArrayOutputStream();
XDOUtility.retrieveReport(xdoOutput,
parameters,
prop,
appMod
BlobDomain bxdoOutput = new BlobDomain();
bxdoOutput.setBytes(xdoOutput.toByteArray());
String redirectURL = DocumentHelper.getOutputURL(pageContext,
bxdoOutput,
"Report",
"PDF");
OAHTMLWebBean outRegion = (OAHTMLWebBean)createWebBean (pageContext, OAWebBeanConstants.HTML_WEB_BEAN, null, "IFRAME");
outRegion.setHTMLAttributeValue("src", redirectURL);
outRegion.setHTMLAttributeValue("width", "100%");
outRegion.setHTMLAttributeValue("height", "100%");
outRegion.setHTMLAttributeValue("title","Report");
outRegion.setHTMLAttributeValue("name","Report");
pageContext.getPageLayoutBean().addIndexedChild(outRegion);
This successfully displays the report in the XDO Common region. But now the issue is that there are hyperlinks in the Report displayed where from where the user can navigate to other detail pages.
When we click on these links, a new session starts in the xdo common region.
Is it possible that when the user click the links in the report displayed, instead of starting a new session in the xdo region, the detail pages is displayed with in the older session.
Regards
Sandeep -
Why a pdf document with embedded fonts can be copied but is not searchable in pdf reader
I am writing a pdf files with embedded subset fonts. As required, I am including the ToUnicode and CIDSet objects. To test, I created a simple PDF with two Hebrew characters. I can select the two characters and copy to the clipboard, and paste it properly into another application such as Word. But I am not able to search for a word containing these two characters. Adobe Reader (or Acrobat) displays the message that the word was not found. So in essence, I have created a PDF document which can be copied properly, but is not searchable. Any idea what I might be missing when creating the document?
Additional information: 1. The file in question is a minimal file with just two characters. I have tested with many such files in many different languages including English. None of the files are searchable. 2. Curiously, if I search for the letter 'e', Adobe reader highlights an incorrect word, even if the letter 'e' does not exists in the file. 3. Adobe acrobat is also not able to search within this file, however when I save the file to another disk file, the saved file now is searchable. I confirmed that the major objects such as the font-file, ToUnicode object, CID object, and the font description objects are the same in the saved file. However, one of the font object is brought up closer to the top of the file. 4. FoxIt is able to search these files properly.
5 0 obj
<</Filter /FlateDecode /Length 115>>
stream
q 0.750000 0 0 0.750000 0.000000 792.000000 cm
q q q 0.160000 0.000000 0.000000 0.160000 0.000000 0.000000 cm
BT /F0 100.000000 Tf 0 g 750.000000 -690 Td[<02B0>] TJ 35.000000 0 Td[<02B9>] TJ ET Q
Q
Q
Q
endstream
endobj
10 0 obj
<</FontName/AAAAAA+ArialUnicode/CIDSet 9 0 R /Ascent 905/CapHeight 905/Descent -212/FontFamily(Arial)/Flags 32/FontBBox [0 -212 1000 905]/ItalicAngle 0/StemV 0/FontFile2 7 0 R/Type/FontDescriptor>>
endobj
11 0 obj
<</BaseFont/AAAAAA+ArialUnicode/CIDToGIDMap/Identity/CIDSystemInfo <</Ordering(Identity)/Registry(Adobe) /Supplement 0>> /FontDescriptor 10 0 R/Subtype/CIDFontType2/Type/Font>>
endobj
12 0 obj
<</Subtype/Type0/BaseFont/AAAAAA+ArialUnicode/Encoding/Identity-H/DescendantFonts [11 0 R]/ToUnicode 8 0 R/Type/Font>>
endobj
8 0 obj
<</Filter /FlateDecode /Length 252>>
stream
/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo
<< /Registry (Adobe)
/Ordering (UCS) /Supplement 0 >> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000> <FFFF>
endcodespacerange
3 beginbfchar
<0000> <0000>
<02B0> <05E0>
<02B9> <05E9>
endbfchar
endcmap
CMapName currentdict /CMap defineresource pop
end
end
endstream
endobjI figured the app might have that ability - considering you can add text, highlight, add a signature, annotate and draw - so my thought was why not delete a page, or rearrange for that matter?.. That should be an option, this way we don't have to export to one of the other apps to delete or rearrange..
Thanks for the help, Bernd.
BTW if anyone is looking - PDF Max can do all of the above and delete and rearrange. With PDF Splicer you can delete and rearrange as well, but it has no other features.
And as for Steve Werner whose comment was deleted after it got to my inbox, it is much more than a Reader, as you can plainly see from the amount of tasks the Reader app can do above.
Maybe you are looking for
-
How to share a premier pro project
how to share a premier pro project?
-
If I understand correctly the card slot on the Macbook Pro is for flash memory? Can it be used for anything else?
-
I have been having trouble with You Tube videos not functioning, so decided to upgrade my Flash and Shockwave players. I use Firefox on Windows 7. Flash loaded up fine as a upgrade, but Shockwave for Director kept hanging up. I did an uninstall and c
-
Archived logs quickly filling up
DBA from the client site where one of our product is running is complaining that one of the processes from our application is generating too much redo and are filling up the archive redo log files quickly. How can i find the SQL which is creating the
-
Requried few details on ESS & MSS.
HI Expertise, i am working as Sr SAP WEBDYNPRO ABAP CONSULTANT .Now i am moving to ESS & MSS .So any one can guide me on this ESS (STANDARD & CUSTOMIZING ) , MSS (STANDARD & CUSTOMIZING) WEBDYNPRO. By giving the material with screen shots so that i c