Lines around elements in PDF output
Hello.
When I output a PDF out of Acrobat 9 (originally created in Indesign CS4), I get weird lines that surround text boxes, images, etc. Here is an eBook version of the PDF I'm having problems with.
http://www.supergroom.net/sg09_program
You can click the PDF button to directly view the PDF. You can see even on the front page there are lines surrounding elements of the page.
How can I remove those lines?
Thanks
In Acrobat, if you deselect the Smooth Line Art and Smooth Images check boxes in the Preferences the problem goes away but that doesn't help as that is a user preference.
Similar Messages
-
Hairline white line around images in PDF for press
CS3, Windows XP
I searched the forum and didn't find this exact question, so..., I place PSD file in ID. When I export to PDF for the press run, I get a thin hairline white box around the photo. It only seems to happen when the placed image is over a gradient. It also only happens on PDF files for press run - either Press Quality or PDF/X-1a:2001. When I export to "Smallest File Size" it looks fine. I have the border of the image set to 0 and the color to None.
And it only seems to happen sometimes. A month or so ago I created a similar piece using different photos, but the same gradient background and it looked and printed fine.
Thoughts?
JAGThe stitching and a grey box was showing up on my press proofs. The printer suggested that I flatten the image before I send it to them.
Sometimes I see in on screen and sometimes I don't, but my printer says they see it every time and that it will show up on the proof. I've been trying several different PDF exporting options in ID. We are getting the proofs done correctly, but there's only one guy at my printer that can get the file corrected. I'm not sure exactly what he is doing, but one of the people I deal with suggested that he was opening the file in PS, flattening it again, and exporting to PDF, again.
He's the boss and not alway around, so I'm trying to figure out how I can get file exported correctly.
Thanks for your help.
JAG -
Line objects not showing in pdf output in xmlp 5.6.1
Hello,
Is there a bug or just a version issue when trying to produce pdf output using xmlp 5.6.1 Enterprise Edition from a template built in xmlp 5.6.2 stand alone? Different versions of pdf too. The xmlp 5.6.1 EE uses Adobe 7.0.7 and I use 7.0.0 for my dpf output. The issue is that the template built using 5.6.2 has line objects in the rtf file. When this template is registered in xmlp 5.6.1 EE and the report is generated the lines don't show up in the pdf.
Any one?
RyanI opened a TAR and here is the answer. My template definition was wrong because I directly used my data template xml file to define my template using template builder.
Here are all the steps to use XML data template under apps.
To use data templates, do the following:
1- Create the data template similar to the following structure
2- Login to responsibility "XML PUBLISHER ADMINISTRATOR" -> Data Definition
2.1 upload the data template (that is made in step1)
2.2 Insert a new code that is not find the concurrent request short name.
3- Login to system administrator -> concurrent -> program -> define (define a new concurrent request as following)
3.1 use execute XDODTEXE (it takes the data definition in step 2 and shall execute the query to obtain XML output)
3.2 Output format = XML
3.3 request short name as that defined in step (2.2)
4- Add the request to a request group
5- The the concurrent request and get the created XML output
6- Use the created XML Output in (step 5) to create your template layout using Template builder vers
ion 5.5
7- After creating the template go to responsibility "XML PUBLISHER ADMINISTRATOR" -> Templates
7.1 define a new template
7.2 use the same data definition that you created at (step 2)
7.3 Use the same code as in step (2.2)
After all the above steps you shall get the output as you wish. The main link between Data template and the concurrent request that execute the data template to generate the XML output is the request short name and the data template code.
Hint:
request short name = data template code. -
Strange artifacts on PDF output (when a line is in close proximity to a box)
Hello all,
I am hoping that someone can suggest a solution for this purplexing issue.
I have a rectangle (actually occurs on similar rectangle image boxes or text boxes) that connects to a line (Japanese Dots). Whenever the line is near the rectangle, their is a faint but noticable white line surrounding the rectangle.
When I initiate EDIT mode in Adobe Acrobat, it reveals that the PDF output/distilled version is introducing this artifact by separating part of the image into a 'chunk'. The artifact (or white line) is the border surrounding this image chunk!
Also, it is important to add that if I move the line away from the rectangle, the faint white line vanishes.
Please see attachment.
Any ideas about how to fix this?Rob Day wrote:
Either export with live transparency (PDF/X-4) or if you have to distill make sure the Print>Advanced>Transparency Flattener is set to High Resolution.
Thank you Rob!
Saving as PDF (even with Trans flattener set to high res) didn't help BUT exporting does work.
What is the purpose of Save As [PDF] if it doesn't work correctly? -
Getting a extra space between the line in the PDF output
I an having the rtf templete contains a table . That table contains 3 row and for the second row i have a for loop start at 1st column and end's at last column . first and 3rd row are the simple data donot have any for loop .
So in the PDF out put of the templete gives me extra blank line between the data for the 2nd row.
Example
1st row ------ Contains data field
2nd row For Each grouph data fields End for
3rd row --------- Contains data field
On the PDF output the data which is in the for loop ( 2nd row ) takes one more extra line ( space ) between the record .I an having the rtf templete contains a table . That table contains 3 row and for the second row i have a for loop start at 1st column and end's at last column . first and 3rd row are the simple data donot have any for loop .
So in the PDF out put of the templete gives me extra blank line between the data for the 2nd row.
Example
1st row ------ Contains data field
2nd row For Each grouph data fields End for
3rd row --------- Contains data field
On the PDF output the data which is in the for loop ( 2nd row ) takes one more extra line ( space ) between the record . -
Strike through line is not coming up in PDF output
I have to strike through some data in my report. I tried in design time as well as in run time. In run time I used SRW.SET_FONT_STYLE(SRW.OVERSTRIKE_STYLE) method to strike through the data. It is displaying overstrike line in screen, printer, RTF and HTML outputs, but not in PDF output. Plain data is coming up in PDF format without strikethrough line.
ThanksThis works in Reports 6i Patch 10(6.0.8.19).
-
Table borders offset in PDF output
I am using RoboHelp HTML, version 9 and I need to deliver two outputs for my documentation: WebHelp and PDF.
My table borders look the way I want them to in WebHelp and Word, single line and thin (1px).
But when we go to PDF, I get two sets of lines, one all the way around my cells, another with gaps of white space.
I think its something to do with 3d borders not getting totally eliminated.
I've added "table-collapse: collapse;" to all my table styles.
Any ideas?
Note: If I create a table originally in Word with thin single line borders, it looks fine in PDF.
Here's how it looks in WebHelp and Word...
And then in PDF...Peter,
Yes, as I mentioned in an earlier post, I really like the help design on your web site. I researched many looks in preparing for a new stylesheet project. Ended up emulating a lot of your elements rather than reinvent the wheel.
Hope you are OK with that. Imitation is the sincerest form of flattery (definitely in my case).
Anyhow, I figured out my problem. The CSS for my original tables was using 5px padding all around. In Word output, this gets converted to table cell margins.
And that's what the PDF conversion doesn't like. Take out the original CSS padding--or the converted Word cell margins--and the problem goes away, leaving clean unbroken table lines in the PDF.
Best regards. -
White lines around texts with object effects applied
I am having a persistent problem with InDesign's output of PDFs when I have applied object effects to text boxes.
When I use an effect—such as emboss (shown in samples) or outer glow—on a text box, the PDF renders it with white lines around the text boxes (sometimes with more than one).
See the attached samples; the boxes are clearly visible with a 3rd party PDF viewer, such as Skim; less so with Acrobat Pro, but still there. It's there when I open the PDF in Photoshop, as well.
I've tried playing with transparency flattening settings, and with merging the layers into a single layer. No help.
The sample shown has an emboss effect applied, transparency flattening set to high resolution (ignoring style overrides), and a single merged layer.
Any help?
In Acrobat Pro:
In Photoshop:
In Skim:Thanks so much, Bob.
My printer requires that I use the PDF/X-1a:2001 standard for PDF export, which means that it must be Acrobat 4 or later compatibility.
Also: I don't see how to NOT flatten, when exporting PDF for print; the options for flattening are "low resolution," "medium resolution," or "high resolution"—but there is not an option to NOT flatten. Do you know a work-around for this? -
When we PDF our documents raster line art has cut lines around or beside them if you zoom in they go away and they also do not print. what is cause this. Our customer does not want to see them.
Most of our content is in xml and we output using Antenna House we use a mix of vector and rastor art we only have problems with the raster images
On output it defaults to PDF1.4. But this problem started when we went from 6 to 7, presently we use Acrobat 9 Pro -
How to customize CHM and PDF output
I can easily generate CHM and PDF using the Generate Output option offered by DITA-FMx, but the output is just standard and I would like to customize it according to the company style. Which files should I work on to modify fonts, colours, indentation, etc, both for CHM and PDF?
For PDF output, you should be using the Generate Book from Map command. This is one of the main reasons to use FrameMaker for DITA .. the high quality PDF output. You'll never achieve the same level of quality through XSL-FO as you do through native Frame. See this video for info on leveraging DITA-FMx features for PDF publishing ..
http://blog.leximation.com/2010/03/pdf-publishing-with-dita-fmx-1-1/
To customize the formatting of any output generated through the DITA Open Toolkit (which is what is used by the Generate Output command), you have to modify the XSL and CSS files in the DITA-OT. The "proper" way to do this is to create an OT plugin that provides you with a custom Ant target that does exactly what you want. You can then deliver this plugin to others on your team who need to generate the same output, and you haven't mucked around with the core OT files. You can also just dive in and tweak the files directly, but when you break something you won't be able to test with the original files without restoring from backups.
You can start by tweaking the CSS files, but if you need to make structural modifications to the way the HTML is generated, you'll need to do some XSL work. Note that setting the @outputclass value on the DITA topic files, passes that value into the corresponding element in the @class attribute of the generated HTML. This is a good way to allow you to control formatting of specific elements.
The best place to go for instructions/info on exactly which files to modify in the OT and how to build a plugin, is the dita-users Yahoo group. This is definitely the list to be on for anything that relates to the DITA-OT.
Scriptorium Publishing has a nice whitepaper on customizing the OT ..
http://store.scriptorium.com/items/books/hacking-the-dita-open-toolkit-detail.htm
Also, the dita.xml.org website has some useful info.
Cheers,
...scott -
Hi Experts,
I am using following code to convert Alv report to pdf format..........can i change the number of output lines shown in the pdf
DATA :
WA_TSTC TYPE TSTC,
WA_TSTCP TYPE TSTCP,
SM30_PARA TYPE TSTCP-PARAM,
IT_PARAM TYPE STANDARD TABLE OF STRING,
WA_PARAM TYPE STRING,
GV_REPORT TYPE SY-REPID,
GV_PARAMS TYPE PRI_PARAMS,
GV_VALID TYPE STRING,
GV_RQIDENT TYPE TSP01-RQIDENT,
GT_RSPARAMS TYPE STANDARD TABLE OF RSPARAMS,
WA_TSP01 TYPE TSP01,
GV_SPOOL TYPE TSP01-RQIDENT,
GV_RQ2NAME TYPE TSP01-RQ2NAME,
PDF_BYTECOUNT TYPE I,
PDF_SPOOLID LIKE TSP01-RQIDENT,
LIST_PAGECOUNT TYPE I,
BTC_JOBNAME TYPE TBTCJOB-JOBNAME,
BTC_JOBCOUNT TYPE TBTCJOB-JOBCOUNT,
BIN_FILE TYPE XSTRING,
GT_PDF TYPE STANDARD TABLE OF TLINE,
GV_BIN_FILESIZE TYPE I, " Binary File Size
GV_FILE_NAME TYPE STRING,
GV_FILE_PATH TYPE STRING,
GV_FULL_PATH TYPE STRING.
" Selection Screen
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT000.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (23) TEXT001 FOR FIELD P_TCODE.
PARAMETERS P_TCODE TYPE TSTC-TCODE OBLIGATORY.
SELECTION-SCREEN END OF LINE.
"Text
SELECTION-SCREEN SKIP 1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN COMMENT (70) TEXT002.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN: END OF BLOCK B1.
LOAD-OF-PROGRAM.
TEXT000 = 'Selection Criteria'.
TEXT001 = '@8T@ Transaction Code'.
TEXT002 = '*Enter Tcode->Select Print Option->Execute report->Save PDF File'.
START-OF-SELECTION.
"Fetch Tcode and Report info
PERFORM FETCH_TCODE_REPORT.
"Call Transaction
PERFORM CALL_TRANSACTION.
"Get Spool and Generate PDF
PERFORM GET_SPOOL_TO_PDF.
*& Form FETCH_TCODE_REPORT
* text
* --> p1 text
* <-- p2 text
FORM FETCH_TCODE_REPORT .
DATA :
FLG_TCODE TYPE CHAR1,
CHR1 TYPE CHAR40,
CHR2 TYPE CHAR40.
SELECT SINGLE * FROM TSTC
INTO WA_TSTC WHERE TCODE = P_TCODE
AND PGMNA NE SPACE
AND DYPNO = 1000. "only Standard Report
IF SY-SUBRC = 0.
FLG_TCODE = 'X'.
GV_REPORT = WA_TSTC-PGMNA.
ELSE.
SELECT SINGLE * FROM
TSTCP INTO WA_TSTCP
WHERE TCODE = P_TCODE
AND PARAM NE SPACE.
SPLIT WA_TSTCP-PARAM AT ';' INTO TABLE IT_PARAM.
LOOP AT IT_PARAM INTO WA_PARAM.
IF WA_PARAM CS '-REPORT='.
FLG_TCODE = 'X'.
SPLIT WA_PARAM AT '-REPORT=' INTO CHR1 CHR2.
GV_REPORT = CHR2.
EXIT.
ENDIF.
ENDLOOP.
ENDIF.
IF FLG_TCODE IS INITIAL.
MESSAGE 'In Valid Tcode' TYPE 'I' DISPLAY LIKE 'E'.
LEAVE TO TRANSACTION SY-TCODE.
ENDIF.
CALL FUNCTION 'AUTH_CHECK_TCODE'
EXPORTING
TCODE = P_TCODE
EXCEPTIONS
PARAMETER_ERROR = 1
TRANSACTION_NOT_FOUND = 2
TRANSACTION_LOCKED = 3
TRANSACTION_IS_MENU = 4
MENU_VIA_PARAMETER_TRANSACTION = 5
NOT_AUTHORIZED = 6
OTHERS = 7.
IF SY-SUBRC <> 0.
MESSAGE 'No Authorization for Tcode' TYPE 'I' DISPLAY LIKE 'E'.
LEAVE TO TRANSACTION SY-TCODE.
ENDIF.
ENDFORM. " FETCH_TCODE_REPORT
*& Form CALL_TRANSACTION
* text
* --> p1 text
* <-- p2 text
FORM CALL_TRANSACTION .
CALL FUNCTION 'GET_PRINT_PARAMETERS'
IMPORTING
OUT_PARAMETERS = GV_PARAMS
VALID = GV_VALID.
IF SY-SUBRC <> 0.
ENDIF.
"Spool Mode, Default will be Spool Only
CLEAR GV_PARAMS-PRIMM.
"Spool Request Name, Pass Report name , Only 1st 12 Chars
GV_RQ2NAME = GV_REPORT.
GV_PARAMS-PLIST = GV_RQ2NAME.
SUBMIT (GV_REPORT) VIA SELECTION-SCREEN
TO SAP-SPOOL
SPOOL PARAMETERS GV_PARAMS
WITHOUT SPOOL DYNPRO
AND RETURN.
IF SY-SUBRC NE 0.
MESSAGE 'Unable to Execute Report' TYPE 'I' DISPLAY LIKE 'E'.
LEAVE TO TRANSACTION SY-TCODE.
ENDIF.
WAIT UP TO 2 SECONDS.
ENDFORM. " CALL_TRANSACTION
*& Form GET_SPOOL_TO_PDF
* text
* --> p1 text
* <-- p2 text
FORM GET_SPOOL_TO_PDF .
DATA :
LV_RQCRETIME TYPE TSP01-RQCRETIME,
LV_RETURNCODE TYPE I.
CONCATENATE SY-DATUM '%' INTO LV_RQCRETIME.
SELECT MAX( RQIDENT ) INTO GV_SPOOL FROM TSP01 WHERE RQCLIENT = SY-MANDT
AND RQ2NAME = GV_RQ2NAME
AND RQOWNER = SY-UNAME
AND RQCRETIME LIKE LV_RQCRETIME.
CHECK SY-SUBRC = 0.
SELECT SINGLE * FROM TSP01
INTO WA_TSP01 WHERE RQIDENT = GV_SPOOL.
IF WA_TSP01 IS INITIAL.
MESSAGE 'No Valid Spool Request Found' TYPE 'I' DISPLAY LIKE 'E'.
LEAVE TO TRANSACTION SY-TCODE.
ENDIF.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = GV_SPOOL
NO_DIALOG = ABAP_FALSE
IMPORTING
PDF_BYTECOUNT = PDF_BYTECOUNT
PDF_SPOOLID = PDF_SPOOLID
BTC_JOBNAME = BTC_JOBNAME
BTC_JOBCOUNT = BTC_JOBCOUNT
TABLES
PDF = GT_PDF
EXCEPTIONS
ERR_NO_ABAP_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DESTDEVICE = 5
USER_CANCELLED = 6
ERR_SPOOLERROR = 7
ERR_TEMSEERROR = 8
ERR_BTCJOB_OPEN_FAILED = 9
ERR_BTCJOB_SUBMIT_FAILED = 10
ERR_BTCJOB_CLOSE_FAILED = 11.
CHECK GT_PDF IS NOT INITIAL.
GV_FILE_NAME = P_TCODE.
* To display File SAVE dialog window
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
EXPORTING
WINDOW_TITLE = 'Save Output as PDF' "LV_TITLE
DEFAULT_EXTENSION = 'PDF'
FILE_FILTER = '(*.pdf)|*.pdf|'
DEFAULT_FILE_NAME = GV_FILE_NAME
CHANGING
FILENAME = GV_FILE_NAME
PATH = GV_FILE_PATH
FULLPATH = GV_FULL_PATH
EXCEPTIONS
CNTL_ERROR = 1
ERROR_NO_GUI = 2
NOT_SUPPORTED_BY_GUI = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
* Use the FM GUI_DOWNLOAD to download the generated PDF file onto the
* presentation server
CHECK GV_FULL_PATH IS NOT INITIAL.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE = GV_BIN_FILESIZE
FILENAME = GV_FULL_PATH
FILETYPE = 'BIN'
TABLES
DATA_TAB = GT_PDF
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 'File Generated Successfully' TYPE 'S'.
ELSE.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " GET_SPOOL_TO_PDFHi ,
Try this procedure...
DATA:SSFCTRLOP TYPE SSFCTRLOP.
DATA:SSFCOMPOP TYPE SSFCOMPOP.
DATA:IT_OTF_DATA TYPE SSFCRESCL.
DATA:IT_OTF_FINAL TYPE ITCOO OCCURS 0 WITH HEADER LINE.
DATA:BIN_FILESIZE TYPE I.
DATA:IT_PDFDATA TYPE TABLE OF TLINE.
DATA:IT_PDF TYPE TABLE OF SOLISTI1.
DATA: ST_JOB_OUTPUT_INFO TYPE SSFCRESCL,
ST_DOCUMENT_OUTPUT_INFO TYPE SSFCRESPD,
ST_JOB_OUTPUT_OPTIONS TYPE SSFCRESOP,
IT_DOCS TYPE STANDARD TABLE OF DOCS,
IT_LINES TYPE STANDARD TABLE OF TLINE,
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_BIN_FILESIZE TYPE I.
****** PDF
TYPES: T_DOCUMENT_DATA TYPE SODOCCHGI1,
T_PACKING_LIST TYPE SOPCKLSTI1,
T_ATTACHMENT TYPE SOLISTI1,
T_BODY_MSG TYPE SOLISTI1,
T_RECEIVERS TYPE SOMLRECI1,
T_PDF TYPE TLINE.
DATA : W_DOCUMENT_DATA TYPE T_DOCUMENT_DATA,
W_PACKING_LIST TYPE T_PACKING_LIST,
W_ATTACHMENT TYPE T_ATTACHMENT,
W_BODY_MSG TYPE T_BODY_MSG,
W_RECEIVERS TYPE T_RECEIVERS,
W_PDF TYPE T_PDF.
DATA : I_DOCUMENT_DATA TYPE STANDARD TABLE OF T_DOCUMENT_DATA,
I_PACKING_LIST TYPE STANDARD TABLE OF T_PACKING_LIST,
I_ATTACHMENT TYPE STANDARD TABLE OF T_ATTACHMENT,
I_BODY_MSG TYPE STANDARD TABLE OF T_BODY_MSG,
I_RECEIVERS TYPE STANDARD TABLE OF T_RECEIVERS,
I_PDF TYPE STANDARD TABLE OF T_PDF.
DATA : G_SENT_TO_ALL TYPE SONV-FLAG,
G_TAB_LINES TYPE I.
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.
**** ........................GET THE FILE NAME TO STORE....................
CONCATENATE 'Order Vs Billing' '.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.
ENDIF.
if it's helpfur for you.. pls give reward points. -
How to download PDF output forms to presentation server without display
Hi All,
My requirement is to download the Sales Order forms and save it in local system.
I have created a custom program where I am passing a range of Sales Order no, Partner Function, Output type and Application as my input in selection screen.
Logic:
I am calling my Sales Order Abodeform using the FM: 'FP_FUNCTION_MODULE_NAME' and thereby I got the function module name of my form.
Then I am calling the FM:
Input to the FM:
ls_outputparams-nodialog = abap_true.
ls_outputparams-authority = 'X'.
ls_outputparams-getpdf = 'X'.
ls_outputparams-dest = 'LP03'.
ls_outputparams-nopreview = abap_true.
ls_outputparams-reqimm = abap_true.
CALL FUNCTION 'FP_JOB_OPEN'
CHANGING
ie_outputparams = ls_outputparams
EXCEPTIONS
cancel = 1
usage_error = 2
system_error = 3
internal_error = 4
OTHERS = 5.
followed by, CALL FUNCTION (FM name)
EXPORTING
archive_index = toa_dara
archive_parameters = arc_params
control_parameters = ls_control_param
mail_recipient = ls_recipient
mail_sender = ls_sender
output_options = ls_output_param
user_settings = ' '
is_nast = nast
is_vbdka = vbdka
is_addres = addr_key
IMPORTING
document_output_info = document_output_info
job_output_info = job_output_info
job_output_options = job_output_options
TABLES
it_vbdpa = tvbdpa "Item information
it_vbdpau = tvbdpau "Subitem numbers
it_vedpa = tkomservp "Contract Item Validity
it_vedka = tkomservh "Contract Header Validity
it_vedpn = tkomservpn "Contract Item Cancellation Data
it_vedkn = tkomservhn "Contract Header Cancellation DA
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
then , CALL FUNCTION 'FP_JOB_CLOSE'
IMPORTING
e_result = ls_result
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
then i am using the below FM to get the OTF data if any available.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = lv_binfilesize
bin_file = lv_bin_file
TABLES
otf = ls_output_info-otfdata-> i am not sure which data to pass here. i am getting sy-subrc value as 4.
lines = lt_lines
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
Now I dont no how to link the PDF forms to below method.
CALL METHOD cl_gui_frontend_services=>gui_download
EXPORTING
bin_filesize = v_size
filename = D://x.pdf
filetype = 'BIN'
CHANGING
data_tab = lt_pdf.
Because in smartforms, we will convert the OTF output to PDF and that value is passed to GUI_DOWNLOAD FM as input (lt_pdf) , whereas in adobeforms the output itself is in PDF so i dont how to retreive the values from adobeforms and pass it to the above FM, so that I can save 'N' no. of sales order outputs in one PDF file.
Kindly help me out in this.
Thanks & Regards,
Karthikeyan G.Hi Vishnu,
I read the GUI_DOWNLOAD FM documentation, if I am trying to download binary type of file, It is mandatory to pass file size.
In my case, since I am having PDF file, so i don't no how to get the size of the pdf file.
As you said, if i use Convert_OTF FM, i don't have data to pass to the OTF and LINES tables.
I am having values of PDF in xstring format in ls_output1-pdf, which i got using the below FM.
CALL FUNCTION lv_funcname (FM name)
EXPORTING
/1bcdwb/docparams = ls_docparams
is_vbdka = vbdka
IMPORTING
/1bcdwb/formoutput = ls_output1
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
Kindly tell me what values i need to pass to the FM you mentioned in order to get the size of the file.
Thanks & Regards,
Karthikeyan G.
But still I am not sure, how the pdf output is coming for single input whereas if i give in a range, its failing. In single input, i am not giving binary file size still the output is coming.. but for range its not. Kindly help me out in this. -
Hi,
We are trying to print a XML out put in PDF format using dot matrix printer. The problem is, the dot matrix printer is printing in graphic mode, i.e. each line is printed as two halves. We need each character to be printed as a whole character. Due to graphic mode printing the report is not legible. Suggest some font that can be used in the template which will appear legible in dot matrix.
Or any other way to print the PDF output in character mode.
Regards,
AnupamHi,
this sounds like a printer driver / firmware issue. I'd suggest to discuss that issue with the printer vendor and maybe get support from them to get the printer working for PDF files.
Another option is to put some filters in the print queue to convert the PDF into other formats, bitmap or postscript or whatever the printer understands.
I don't think this is a problem related to BI Publisher, as long as the PDF displays fine on your screen.
best regards,
David. -
Special Characters in XML Publisher PDF Output
Hi,
I'm printing "Long Text" in report output in every line based on tab.
Report output is having special characters like \n.
I was using below to print in next line, any suggestions for removing \n.
Below is what was happening:
===================
RDF:
=====
lv_notes := replace(:CF_LONG_TEXT_DESC, chr(9), ' ') ;
lv_notes1 := replace(lv_notes, chr(10), ' ') ;
lv_notes2 := replace(lv_notes1, chr(13), ' ') ;
XML
===
<CF_LONG_TEXT_desc>
Initial Billing Amount: $549,180.00 \n \n Computation: \n a) Estimated Number of Full-Time Students: 12,000 \n
b) Estimated Number of Calendar Days: 113 \n
c) Calendar Date (From - To): 1/18/2011 - 5/10/2011 \n
d) Multiply by: $0.81 \n
e) Estimated Total Costs: $1,098,360.00 \n
f) Initial Billing Amount represents 50% of Estimated Total Costs. \n
\n \n
If you have questions about your invoice please contact Darud Akbar at (312) 681-2724.
</CF_LONG_TEXT_desc>
PDF Output
==========
Initial Billing Amount: $549,180.00 \n \n Computation: \n a) Estimated Number of Full-Time Students: 12,000 \n
b) Estimated Number of Calendar Days: 113 \n
c) Calendar Date (From - To): 1/18/2011 - 5/10/2011 \n
d) Multiply by: $0.81 \n
e) Estimated Total Costs: $1,098,360.00 \n
f) Initial Billing Amount represents 50% of Estimated Total Costs. \n
\n \n
If you have questions about your invoice please contact Darud Akbar at (312) 681-2724.
Thanks.>
Initial Value
=======
<?CF_LONG_TEXT_desc?>
Changed to (Below gives me error)
========
<?<xsl:value-of select="translate(CF_LONG_TEXT_desc,'\n','')"/>?>
Changed to (Below doesn't fetch data)
========
<xsl:value-of select="translate(CF_LONG_TEXT_desc,'\n','')"/>
>
must be in field as
<xsl:value-of select="translate(CF_LONG_TEXT_desc,'\n','')"/> -
Problem with number-fields in PDF Output Using FOP
When generating PDF Output using FOP as described in the utilitiy provided in the HTMLDB Studio http://htmldb.oracle.com/pls/otn/f?p=18326:44:12104450162492733947::::P44_ID:1522
formatted numbers over 1,000 are resolved as characters (because of the comma) and are therefore right justified. This results in alignment issues for numeric columns.
Does anyone have any ideas on how to work around this.
Thanks,
DavidHello,
Your probably going to have to edit the xslt to get the result either by stripping out the comma or by setting that column to explicitly align the way you want it.
Carl
Maybe you are looking for
-
My main computer died where i was keeping tohusands of songs, never had a icloud account to share with all my computers I authorized for my account. I do have just about all of the music ononeofmy ipod nanos. Can I set up a cloud account and then upl
-
How do I change the font of individual words in a JTextArea?
Hey everybody! I just have a quick question about JTextArea. I have a JTextArea and I am trying to find out how I can go about changing the style of individual words. For example, the first 3 words could be bold, and the next 3 words could be blue. H
-
How To Display Table Header in JTable
Hi, I have a tree node that is a JTable. It displays the cells, but not the header or the left hand side of the table. Here is my code ... Anyone got any ideas? public SimpleTree() { super("Creating a Simple JTree"); WindowUtilities.setNativeLookAndF
-
Material not subj. to inventory mgmt. in plant
Dear All, During stock transfer, while creating PO I am gettinh an error "Material not subj. to inventory mgmt. in plant " msg no.- ME124. though i have maintained all parameters. Please help me to find where I am missin?? Regards- Ram
-
ERROR:Context Value Management Failed adconfig.cmd
hi, when attempting to run %ORACLE_HOME%/ad/11.5.0/cin> adconfig.cmd contextfile=%CONTEXT_FILE_LOCATION% its gives error in log file as. ERROR:Context Value Management Failed Terminate Regards ***SBJ***