Chinese char. in PDF file
Hi,
Chinese char. in PDF no problem to printer, but when spool to file, chinese char. is "###"
What to be set in order to solve this issue.
Thank you.
Best Regards
Shese
Hi,
thanks for your repply.
Yes, we are in ECC6.0.
I think it's a unicode problem, but I don't know how to fix it.
Mich
Similar Messages
-
Chinese Char support in JNLP file
Hi All,
We have to support the chinese char in jnlp file as jar file name.
Can we support this .
Kindly provide this information we anybody new about this ...
Thanks in advance for your support.
Regards,
Piyush>
Thats setting the system properties right? >Not so much (AFAIR you can 'set' java.home, but it has no effect). It is simply properties that are accessible to the app. at run-time.
>
I wanted to send command line argument, wher in main(String[] arg) method I wanted to access from the arg[] arrays,
Is there any way to do that? Then what is the purpose of <argument> tag?>That is doable as well. I have seen two common forms of handing arguments with names..
java theapp.jar -foo fooValue -bar barValue
java theapp.jar foo=fooValue bar=barValueThe first presumes all names and values occur in order (1 name, 1 value, 1 name, 1 value..) and arrive at main(String[]) in that order. The second has the '=' sign as delimiter between name and value.
The way they would be specified as arguments is something like..
<application-desc ..>
<argument>-foo</argument>
<argument>fooValue</argument>
<argument>-bar</argument>
<argument>barValue</argument>
</application-desc>&
<application-desc ..>
<argument>foo=fooValue</argument>
<argument>bar=barValue</argument>
</application-desc> -
Problem in converting spool to PDF file
Hi guys,
My spool contains Russian characters which are shown as one special char in pdf file. I guess the russian char. are not recognized by pdf.
I convert the spool to pdf using following FM
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = wa_spool-spool
no_dialog = ' '
IMPORTING
pdf_bytecount = v_numbytes
pdf_spoolid = v_pdfspoolid
btc_jobname = v_jobname
btc_jobcount = v_jobcount
TABLES
pdf = pdf.
Then i download the file using FM:
CALL FUNCTION 'WS_DOWNLOAD'
EXPORTING
bin_filesize = v_numbytes
filename = v_return1
filetype = 'BIN'
TABLES
data_tab = pdf
Help me....
Point will be rewarded on helpful answers.
Regards,
GURUHI
use my code
it will do the entire job
*& Report Z8VM_SPOOL2PDF *
report z8vm_spool2pdf .
**---- Author : vivekanand meghmala
**---- Purpose : Create Single PDF file with outputs of
**---- Multiple Spools.
**---- Create Date: July 05th, 2006
**---- Analyst : Vivek Maheshwari
**---- Tables
tables : tsp01.
**---- Select Options for Multiple spools
select-options :
s_spool for tsp01-rqident obligatory.
**---- Parameters for File Path.
parameters :
p_file type localfile default 'C:combined.pdf' obligatory.
**---- Get the Spool Requests entered in Select-options for Spools.
data : i_tsp01 like tsp01 occurs 0 with header line.
**---- Work Areas and Variables
data: wa_eof type soli, "----- End of File Work Area
v_file type string, "----- String
v_size type i, "----- Size
v_lines type i. "----- Lines in Internal Table
**---- Internal Table for Spool Details and PDF and Document Details
data : i_spool_table type table of soli,
i_spool_total type table of soli with header line,
i_otf type table of itcoo with header line,
i_doc like table of docs,
i_pdf like table of tline.
**---- Move File name to Variable
v_file = p_file.
**---- Clear and Refresh Internal Tables before first use
clear i_tsp01. refresh i_tsp01.
clear i_spool_table. refresh i_spool_table.
clear i_spool_total. refresh i_spool_total.
**---- Get Spool ID Details from TSP01
select * from tsp01 into table i_tsp01 where rqident in s_spool.
**---- Sort Table in Ascending order based on Spool Id
sort i_tsp01 by rqident.
**---- Get information about Multiple spools
loop at i_tsp01.
**---- Get Multiple Spool information
call function 'RSPO_RETURN_SPOOLJOB'
exporting
rqident = i_tsp01-rqident
tables
buffer = i_spool_table
exceptions
no_such_job = 1
job_contains_no_data = 2
selection_empty = 3
no_permission = 4
can_not_access = 5
read_error = 6
type_no_match = 7
others = 8.
if sy-subrc = 0.
endif.
**---- Get the Last line index (Number of Lines)
describe table i_spool_table lines v_lines.
**---- Clear Work Area for End of File (EOF) and read
**---- End of File String into it and Delete it
clear wa_eof.
read table i_spool_table index v_lines into wa_eof.
delete i_spool_table index v_lines.
**---- Collect All individual Spool Details into one internal table.
append lines of i_spool_table to i_spool_total.
at last.
**---- Append End of File information to Internal table
**---- Containing information about all the invidual spools -
**---- Thus forming one single spool
append wa_eof to i_spool_total.
endat.
endloop.
**---- Clear OTF tables before initial use
clear i_otf. refresh i_otf.
**---- Fill in the OTF internal table
loop at i_spool_total.
clear i_otf.
i_otf = i_spool_total.
append i_otf.
endloop.
**---- Convert the OTF information to PDF.
call function 'CONVERT_OTF_2_PDF'
exporting
use_otf_mc_cmd = 'X'
importing
bin_filesize = v_size
tables
otf = i_otf
doctab_archive = i_doc
lines = i_pdf
exceptions
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
others = 3.
if sy-subrc <> 0.
message i002(sy) with 'Cannot convert to PDF, exiting....'.
leave program.
endif.
**---- Download PDF file thus formed onto frontend
call method cl_gui_frontend_services=>gui_download
exporting
filename = v_file
filetype = 'BIN'
changing
data_tab = i_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
not_supported_by_gui = 22
error_no_gui = 23
others = 24.
if sy-subrc <> 0.
message i002(sy) with 'Cannot download PDF, exiting....'.
leave program.
endif. -
Error when opening a pdf file in chinese
Hello,
I have created a specific PO form by copying the standard one BBP_PO in SRM.
After generating a pdf file with my specific form, I get the error "There was a problem reading this document (15)" when I try to open it.
I can see some characters, and then everything disappears. I have both english and chinese characters.
The chinese language is installed.
If I use the standard form, I don't get the error !
In the form, I use some standard text, which are created in english and chinese.
Thanks for your help.
MarcJust so you know, my default PDF can opener remains set to Preview, though I will use Acrobat Reader when and if it serves my need.
The upside of the Show scroll bars set to always is intuitive with applications. The downside is that any web content that has the CSS overflow:scroll configured will permanently have scrollbars attached to that content. At least, that is the behavior with Safari on Mavericks. Since I do web work too, I have left my scrollbar setting to when scrolling.
I believe the OP issues about resizing PDFs has to do with the default nature of Preview to open PDFs in continuous, rather than single page mode. In the former state, one must always fuss with resizing the Preview window, and in the latter, Preview does what it should do — a single, tightly cropped PDF page. Setting the Single Page preference setting in one document does not make this behavior permanent for subsequent documents.
I made two changes to Preview that open any PDF in Single Page mode, and tightly cropped to that page:
Preview PreferencesPDF: Define 100% scale as: Size on screen equals size on printout
Defaults write
Change to ~/Library/Containers/com.apple.Preview/Data/Library/Preferences
defaults write com.apple.Preview kPVPDFDefaultPageViewModeOption 1
Continuous view mode is (0) zero
PDF documents will now default to Single Page mode -
How to name a pdf file in chinese?
I have a customer, who wants to name a prticular PDF file in chinese, but when he does so, he cannot open the file. When he names the same pdf file in English, it opens just fine. The contents in the pdf file are in chinese language, which appears without any issues. So far, tried the following steps:
1. Installed the language support for Simplified Chinese, of the correct version (8.X).
2. Went to Start > Control Panel > Regional and Language Options > "Advanced" tab > Chose Chinese PRC
Nothing seems to be working. Can someone help?
ThanksHi
I've tried to replicate that on my Dutch Windows XP. Acrobat 6.0.6 couldn't open file with Chinese name. Acrobat 9 opened that file without problem.
Regards
Bartek -
After installing Reader 11.0.07 update on my iMac OS X, v.10.8.5, when I open an Adobe pdf file I see Chinese script next to the blue loading bar at the bottom of the screen. This never appeared before when downloading pdf files and I am worried that my computer is being hacked into or I acquired a virus. Is this normal or do I have to uninstall this update?
After installing Reader 11.0.07 update on my iMac OS X, v.10.8.5, when I open an Adobe pdf file I see Chinese script next to the blue loading bar at the bottom of the screen. This never appeared before when downloading pdf files and I am worried that my computer is being hacked into or I acquired a virus. Is this normal or do I have to uninstall this update?
-
Web.show_document cannot display file with Chinese char in IIS 6
Dear all,
There is a problem that web.show_document cannot display file with Chinese char in IIS 6, but works fine in IIS 5.
Is it a server problem or is there any setting in server? Do you know how to solve it?
Big Thanks
JYHi,
As Francois mentioned, this issue has nothing to do with forms / web.show_document. web.show_document, just opens the URL specified as parameter. So, if you run the URL (that you've passed as argument for web.show_document), directly in the browser, you would be getting the same issue.
So, as you said, if it works fine in IIS 5 and does not in IIS 6, it would be an issue with the IIS and not forms. You might want to check out the IIS 6 release notes / documentation for any known issues / raise an issue in that.
-Arun -
Pdf file in simply Chinese can not be displayed properly sometimes, how to solve it?
pdf file in simply Chinese can not be displayed properly sometimes, how to solve it?
Try a different pdf reader, like GoodReader.
Try switching your OS to Chinese (or English, if it is already in Chinese).
Verify that the pdf does display correctly on a full computer. -
Chinese character overlap in PDF file
Hi guyz,
I am working on the issue on Chinese character overlap in PDF file.
There is smartform which is being used to generate ePaySlip(Comes in email) in PDF file format which contains Chinese and English both characters.
Now the issue is that at the bottom of the ePaySlip there is a Remark section which is maintained in Chinese and English both. However, the English sentences are proper withour any problem whereas the same thing in Chinese is showing as distorted/overlapped in few words.
Can anyone suggest what could be the cause and suggest some solution.
As when I checked in smartform those characters are hard coded and Chinese characters are shown as ###.
Please response, I would be really grateful.
Thanks & Regards,
MiniHi,
there a different things to know.
I produce sapscript forms with cinese and english characters for frontend / backend and archiv printing.
Please check:
Editor displays ###: You have to install the chinese language in your e.g. windows-system to display them.
Script: You have to chose the the font family "CNSONG" (customized for chinese simplified and LATIN).
Transaction I18N: May you have to set correct subfonts for the unicode areas (Cascading fonts, Standard is Courier).
You can print in different ways:
For archiv/PDF: Install the unicode truetype font with chinese characters for the pdf-converter.
For Frontend: Use the Frontendprinter SAPWIN or SAPWIN*CF (Cascading Font) to send it to the gui (note: SAPLPD does not support it, use the newer technology.....)
Backend printing: POSTSCRIPT is not yet implemented :-((
PLease note: What you see in spool / print preview is a simulation of the possible print, but backend print is not frontend preview!!!!
Regards,
Christian -
Chinese char issue in smartform preview as pdf format
Hi chinese guy!!
please help me with chinese char in smartform preview as pdf format
i created smartform with chinese char and then when executing this smartform by t-code smartforms, it show as simplified chinese char, but when getting JOB_OUTPUT_INFO in order to convert OTF as pdf format, although smartforms performed as pdf format, only chinese char were broken. smartform with english or korean language does not have any issue, only chinese issue now.
i got into r/3 as logon ZH by SAP GUI english version and i used adobe acrobat reader chinese simplifed version. r/3 version is ecc60 unicode system***
please help me,, any chinese guy there?
1. CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
2. CONTORL_PARAMETERS-NO_DIALOG = 'X'.
CONTORL_PARAMETERS-GETOTF = 'X'.
OUTPUT_OPTIONS-TDNOPREV = 'X'.
CLEAR JOB_OUTPUT_INFO.
3.
CALL FUNCTION FUNCTION
EXPORTING
CONTROL_PARAMETERS = CONTORL_PARAMETERS
OUTPUT_OPTIONS = OUTPUT_OPTIONS
IMPORTING
JOB_OUTPUT_INFO = JOB_OUTPUT_INFO
TABLES
ITEM = ITEM
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4.
OTF_TAB[] = JOB_OUTPUT_INFO-OTFDATA[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
IMPORTING
BIN_FILESIZE = PDF_FSIZE
TABLES
OTF = OTF_TAB
LINES = PDF_TABLE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.hi,
please see the notes 999712.
thanks -
Zip.ZipInputStream cannot extract files with Chinese chars in name
Dear friends,
Peace b upon u!
I am trying to read a zip file (~3000 files)containing one
or more files with Chinese, Japanese or Korean names, the
getNextEntry method throws an IllegalArgumentException as below after extracting just ~300 files as below:-
java.lang.IllegalArgumentException
at java.util.zip.ZipInputStream.getUTF8String(Unknown Source)
at java.util.zip.ZipInputStream.readLOC(Unknown Source)
at java.util.zip.ZipInputStream.getNextEntry(Unknown Source)
at testZipFiles.getZipFiles(testZipFiles.java:65)
at testZipFiles.main(testZipFiles.java:18) issue:java.util.zip.ZipInputStream cannot extract files with Chinese chars in name
Category java:classes_util_jarzip
Plz let me know 1 of the ways which I can solve this issue.
1)if someone has JAVA DCOMPILER plz send the SOURCE Code
for the ZipInputStream.class to me..I need to edit it using 1 of the solutions as provided below which I googled.
2)If there is an alternate or upgraded java.util.zip.ZipInputStream or any org.apache.tools.zip.* package which can read such files..If yes where I can download the same on net.
3)Any other easier solution, which can let me extract all files (by excluding Chinese files thru CATCH) without the extractor process to fail altogether.
On net I found that the only solution with this is:-
- edit the new ZipEntry, remove the static initializer that calls
the native methods initIDs().
this step seems a bit scary, but it's according to the
workaround
to bug #4244499 (the workaround of Olive64, THU JUN 05
01:55 P.M. 2003),
that handles a similar bug at the ZipOutputStream.
Now you have a ZipInputStream that supports multi-bytes
entry names.
to extract the zip file, using the fixed code that is offered
above,
create a function that gets an "encoding" string, a "destPath"
string
and a "sourceFile" (zipped) and does :
ZipInputStream zipinputstream = null;
ZipEntry zipentry;
zipinputstream = new ZipInputStream(new FileInputStream
(sourceFile),encoding);
zipentry = zipinputstream.getNextEntry();
while (zipentry != null) { //for each entry to be extracted
String entryName = zipentry.getName();
int n;
FileOutputStream fileoutputstream = new FileOutputStream
( destPath + entryName );
while ((n = zipinputstream.read(buf, 0, 1024)) > -1)
fileoutputstream.write(buf, 0, n);
fileoutputstream.close();
zipinputstream.closeEntry();
zipentry = zipinputstream.getNextEntry();
}//while
zipinputstream.close();Hi friend,
We'd better to ask one question in each thread. If you have another issue, you can consider to open up a new thread in this forum.
Now for the first question, do you mean this picture? It throws access exception in archive2.
If so , because your extractPath is a path, not a directory.You should add +"xxx.zip". For more information, please refer to
ZipFile.Open
Method (String, ZipArchiveMode).
For the second question, you can use the following code to skip the error message.
while (true)
try
//do something;
catch (Exception ex)
{ continue; }
Good day!
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Chinese characters dont show up on the PDF file
Hi guys,
Chinese characters dont show up on the PDF file. Its #.
Please let know how to fix it.
Thanks!Hi,
I am the facing same problem as you were faced. I am not able to print chinese characters in PDF as it is coming properly in print preview.
I am sendig this document via email.]
Pleae help me if any solution with you.
Thansk and Regards,
J.P -
Send PO Mail with PDF File that Chinese character doestn't display
Send PO Mail with PDF File that Chinese character doestn't display.
I am using RSTXPDFT4, unicode ECC6.0
Some computer Adobe Reader can read the file, but some computer cannot read, just a blank page.
Thanks.Hi
I worked for one client-chinese where we have to print chinese & english ( bilingual).You need to have dricer program which could identify both scripts .You are right ( unicode0
Please check for the driver program : TWPDF : PDF converter Chinese in SPAD setting.
SAP note is available.I will check and let you update .
Edited by: sunny on Oct 28, 2009 10:29 AM -
Send PO Mail with PDF File that Chinese character doestn't display correctl
Send PO Mail with PDF File that Chinese character doestn't display !
I am using RSTXPDFT4 , tried different computer, some Adobe Reader can read
some are Blank .......
why ?Hi,
那不是要每一台 PC 如果看不到中文就要更新 ?
如果用戶不懂, 那就不是永遠看不見 ? 因為那是供應商嗎 ! -
Problem with zipping file with chinese chars
I need to zip a html page which contains some chinese characters, I am able to zip it and create a zip file
but the problem is when i open the zip file and view the html file it displays junk characters instead
of chinese characters
Here is what i am doing
ByteArrayOutputStream bStream = new ByteArrayOutputStream();
ZipOutputStream zStream = new ZipOutputStream(bStream);
ZipEntry zipEntry = new ZipEntry(htmlFilename);
zStream.putNextEntry(zipEntry);
ByteArrayOutputStream dataStream = new ByteArrayOutputStream();
PrintWriter writer = new PrintWriter(
new OutputStreamWriter(dataStream,"UTF-8"));
writer.write(htmlString); //htmlString is the string which contents the html contents which has chinese char
writer.close();
zStream.write(dataStream..toByteArray());And when you view the unzipped file, are you using something that realizes that you encoded your data using UTF-8? My guess is that you are not.
PC²
Maybe you are looking for
-
Windows vista 64 bit and Java 6
Hi, I am having issues getting Java 6 update 7 to install/run properly. I am running Windows Vista home premium, 64 bit. After I install the software and try to launch an app (ASDM), it says that Java is not installed. I downloaded and installed the
-
After publishing I can no longer see the poster frame on QuickTime
I cant figure out why after publishing to the web (MobileMe), I can no longer see the poster frame on the QuickTime movie that I made. When I publishing to a folder on the mac to check my results I can see the poster frame, so it is only happening wh
-
Has anyone had experience trying to install either Solaris 7 or 8 (Intel) on a system with a SuperMicro motherboard? My results were negative. The install died as a result of a device conflict. I would appreciate any info.
-
Vista64 Bluetooth Mighty Mouse scroll wheel SOLVED
I don't know if this has been answered elsewhere, but I spent a great deal of time trying to figure out why my scroll wheel wasn't working in Vista64. If you're running a "Pro" model, use your system restore disc 1 and look for the boot camp installe
-
Fal_client, fal_server triggering when applying with delay .
Hi, I'm on 10.2.0.3 RAC witn physical standby , old fasion config with no standby redo so shiping only after log switch . We've got 10h delay and looks like gap resolving via fal client/server is triggered only when the acctual arch log needs to be r