Sapscript font metrics generate AFM file howto
Hi scripters,
I'm creating an 11pt font for HPLJ5SI.
In SE73, I created new system fonts HELVE 110 normal, bold and so on.
Then SE73 printer fonts for ZHPLJ5SI, same as system fonts. All other HELVE and TIMES fonts have AFM set for cpi. The fontmetrics are displayed as (i.e.( "sapLinkToAFM HPLJ5SI HELVE 100 false false".
I created (also in SE73) new print controls; I derived the correct value comparing the respective HEX strings for 10 point and 12 point HELVE.
I tried "sapLinkToAFM HPLJ5SI HELVE 110 false false" but this does not generate.
Now I used the same definition as for 10 points. The output looks fine but I have doubts about the character spacing: It looks different from what I print from MS Word ARIAL.
I remember there is a (DOS) program to generate font metrics but I forgot the details; Note 12462 does not really help.
I would appreciate a step-by-step guide or a link to a good description.
Best Regards,
Clemens Li
Hi,
Are you trying to generate a PDF file or print to a printer. It is not a good idea to try adding HELVECYR to device type PDF1. You should create the PDF via a device type that supports Cyrillic characters like SAPWIN or SAPWIN5. Also you need to upload true type fonts that support the cyrillic charcters as described in SAP note 322998.
Alternatively if you have a unicode system, you can use unicode device type PDFUC. It is still necessary to upload true type fonts that support the cyrillic charcters. See SAP note 999712.
regards,
Aidan
Similar Messages
-
I am on a mac snow leopard working mostly in Illustrator. Others apps InDesign, After Effects, Premiere. Can someone please explain AFM files, how and when to use them?
Please correct or confirm, but my understanding is that AFM information is in the bitmapepd files of older formats, and within opentype, so there really is no need for .AFM files on the mac.
If the kerning information is in the font already, then why do you always have to kern ones and periods in most fonts. Optical seems to do a better job than auto, but I often later have to tighten the tracking. Is auto using the AFM infomration in the font, and optical is using the Illustrator engine to calculate new kern pairs.AFM (Adobe Font Metric) files contained detailed metrics associated with legacy Type 1 fonts including not only advance widths, but also information such as pair kerning information that would/should be used for layout programs. On the MacOS, most of the AFM information was also included in the bitmap format files that accompanied the actual font outline file. Since the days of Adobe Type Manager and then the built-in Type 1 font renderer in MacOS, the only reason for the bitmap format files was for this font metric information and in fact, you only needed one such bitmap font file per outline file. For Windows, much of AFM information is stored with the .PFM (PostScript Font Metrics) file that accompanies and is installed with the .PFB (PostScript Font Binary) file containing the actual font outlines and some minimal metrics.
TrueType, TrueType OpenType, and OpenType CFF fonts have all font metrics included in the .TTF or .OTF files themselves and as such, do not require any secondary font metrics information.
Whether you kern using the metrics or automatic/optical option, really depends on your tastes and the font itself. The optical option algorithmically creates pair kerning based upon the actaul fit of two glyphs with each other. The techniques are rather sophisticated, but work amazingly well (except when they don't ).
- Dov -
Writing a java program for generating .pdf file with the data of MS-Excel .
Hi all,
My object is write a java program so tht...it'll generate the .pdf file after retriving the data from MS-Excel file.
I used POI HSSF to read the data from MS-Excel and used iText to generate .pdf file:
My Program is:
* Created on Apr 13, 2005
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
package forums;
import java.io.*;
import java.awt.Color;
import com.lowagie.text.*;
import com.lowagie.text.pdf.*;
import com.lowagie.text.Font.*;
import com.lowagie.text.pdf.MultiColumnText;
import com.lowagie.text.Phrase.*;
import net.sf.hibernate.mapping.Array;
import org.apache.poi.hssf.*;
import org.apache.poi.poifs.filesystem.*;
import org.apache.poi.hssf.usermodel.*;
import com.lowagie.text.Phrase.*;
import java.util.Iterator;
* Generates a simple 'Hello World' PDF file.
* @author blowagie
public class pdfgenerator {
* Generates a PDF file with the text 'Hello World'
* @param args no arguments needed here
public static void main(String[] args) {
System.out.println("Hello World");
Rectangle pageSize = new Rectangle(916, 1592);
pageSize.setBackgroundColor(new java.awt.Color(0xFF, 0xFF, 0xDE));
// step 1: creation of a document-object
//Document document = new Document(pageSize);
Document document = new Document(pageSize, 132, 164, 108, 108);
try {
// step 2:
// we create a writer that listens to the document
// and directs a PDF-stream to a file
PdfWriter writer =PdfWriter.getInstance(document,new FileOutputStream("c:\\weeklystatus.pdf"));
writer.setEncryption(PdfWriter.STRENGTH128BITS, "Hello", "World", PdfWriter.AllowCopy | PdfWriter.AllowPrinting);
// step 3: we open the document
document.open();
Paragraph paragraph = new Paragraph("",new Font(Font.TIMES_ROMAN, 13, Font.BOLDITALIC, new Color(0, 0, 255)));
POIFSFileSystem pofilesystem=new POIFSFileSystem(new FileInputStream("D:\\ESM\\plans\\weekly report(31-01..04-02).xls"));
HSSFWorkbook hbook=new HSSFWorkbook(pofilesystem);
HSSFSheet hsheet=hbook.getSheetAt(0);//.createSheet();
Iterator rows = hsheet.rowIterator();
while( rows.hasNext() ) {
Phrase phrase=new Phrase();
HSSFRow row = (HSSFRow) rows.next();
//System.out.println( "Row #" + row.getRowNum());
// Iterate over each cell in the row and print out the cell's content
Iterator cells = row.cellIterator();
while( cells.hasNext() ) {
HSSFCell cell = (HSSFCell) cells.next();
//System.out.println( "Cell #" + cell.getCellNum() );
switch ( cell.getCellType() ) {
case HSSFCell.CELL_TYPE_STRING:
String stringcell=cell.getStringCellValue ()+" ";
writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
phrase.add(stringcell);
// document.add(new Phrase(string));
System.out.print( cell.getStringCellValue () );
break;
case HSSFCell.CELL_TYPE_FORMULA:
String stringdate=cell.getCellFormula()+" ";
writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
phrase.add(stringdate);
System.out.print( cell.getCellFormula() );
break;
case HSSFCell.CELL_TYPE_NUMERIC:
String string=String.valueOf(cell.getNumericCellValue())+" ";
writer.setSpaceCharRatio(PdfWriter.NO_SPACE_CHAR_RATIO);
phrase.add(string);
System.out.print( cell.getNumericCellValue() );
break;
default:
//System.out.println( "unsuported sell type" );
break;
document.add(new Paragraph(phrase));
document.add(new Paragraph("\n \n \n"));
// step 4: we add a paragraph to the document
} catch (DocumentException de) {
System.err.println(de.getMessage());
} catch (IOException ioe) {
System.err.println(ioe.getMessage());
// step 5: we close the document
document.close();
My Input from MS-Excel file is:
Planning and Tracking Template for Interns
Name of the Intern N.Kesavulu Reddy
Project Name Enterprise Sales and Marketing
Description Estimated Effort in Hrs Planned/Replanned Actual Actual Effort in Hrs Complexity Priority LOC written new & modified % work completion Status Rework Remarks
S.No Start Date End Date Start Date End Date
1 setup the configuration 31/01/2005 1/2/2005 31/01/2005 1/2/2005
2 Deploying an application through Tapestry, Spring, Hibernate 2/2/2005 2/2/2005 2/2/2005 2/2/2005
3 Gone through Componentization and Cxprice application 3/2/2005 3/2/2005 3/2/2005 3/2/2005
4 Attend the sessions(tapestry,spring, hibernate), QBA 4/2/2005 4/2/2005 4/2/2005 4/2/2005
The o/p I'm gettint in .pdf file is:
Planning and Tracking Template for Interns
N.Kesavulu Reddy Name of the Intern
Enterprise Sales and Marketing Project Name
Remarks Rework Status % work completion LOC written new & modified Priority
Complexity Actual Effort in Hrs Actual Planned/Replanned Estimated Effort in Hrs Description
End Date Start Date End Date Start Date S.No
38354.0 31/01/2005 38354.0 31/01/2005 setup the configuration 1.0
38385.0 38385.0 38385.0 38385.0 Deploying an application through Tapestry, Spring, Hibernate
2.0
38413.0 38413.0 38413.0 38413.0 Gone through Componentization and Cxprice application
3.0
38444.0 38444.0 38444.0 38444.0 Attend the sessions(tapestry,spring, hibernate), QBA 4.0
The issues i'm facing are:
When it is reading a row from MS-Excel it is writing to the .pdf file from last cell to first cell.( 2 cell in 1 place, 1 cell in 2 place like if the row has two cells with data as : Name of the Intern: Kesavulu Reddy then it is writing to the .pdf file as Kesavulu Reddy Name of Intern)
and the second issue is:
It is not recognizing the date format..it is recognizing the date in first row only......
Plz Tell me wht is the solution for this...
Regards
[email protected]Don't double post your question:
http://forum.java.sun.com/thread.jspa?threadID=617605&messageID=3450899#3450899
/Kaj -
Report: generate to file pdf format
Hi folks,
I have made a report which displays all data on preview and on printer. But when I use generate to file PDF option it misses data from columns at right hand side. The report has more than 15 columns and uses smaller font size.
Kindly somebody help me in this regards.
Tahir AbbasDo the column headings display ok but the data does not?
If so it may be related to the font size. i.e. the whole report may not fit on the page when scaled for pdf output. -
How to embed font into generated PDF?
Hi,
I have an issue with cyrillic fonts in PDF-file, generated from smartform using the following mechanism:
1. Run FM for smartform with ==> getotf = 'X'
2. Perform CONVERT_OTF retrieving result into a XSTRING.
3. Converting xstring content into a table using "cl_document_bcs=>xstring_to_solix).
4. Creating mail to an external internet user with attached pdf ==> using "cl_document_bcs=>create_document..."
Smartform contains cyrillic content, based on HELVCYR (Helvetica cyrillic) font. Application server is based on Windows.
Everything worked well (for months!) for allmost all of the clients of our customer. Of course, some of clients have different OS-es (such as Linux, Mac OS, etc.), and then the problem starts - they doens't view properly the cyrillic content. English content (even numbers, etc.) are properly displayed. We found what fonts are used in the PDF, but my questions are:
1. Is it possible to embed the font into generated PDF-content?
2. If no, is it possible to generate PDF-content non-selectable (i.e. in some image mode) ?
If yes, how to do this?
Or is there any other way to workarround this issue - to be able to display mail with attached PDF-content with cyrillic on different OS-es? It would be better if it is possible without calling external converter...
Any help would be highly appreciated.
Thanks in advance.
Regards,
Ivaylo MutafchievHello Ivaylo Mutafchiev,
There is no way we can control the fonts in the created PDF / while creating the PDF using the class cl_document_bcs in your PDF creation logic.
You can try some other approach of creating PDF from the Smartforms OTF stream data .
Try using the follosing FM for the PDF creation and sending email:
CONVERT_OTF_2_PDF
CONVERT_OTF_AND_MAIL
SO_OBJECT_SEND
CONVERT_OTF_AND_MAIL_NEW (Try this but this FM still uses the class that you are using currently. But give it a try and see the results)
Hope this answers your question.
Thanks,
Greetson -
Generating excel files using XSLT mapping
Hi All,
I am working on a proxy to file scenario and we have a requirement of generating .xls file in a spreadsheet format at FTP server.I have done xslt mappping for creating the excel file in spreadsheet.But getting following error in channel monitoring.
Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error occurred while connecting to the FTP server "phmysa-s3006.ap.novartis.net:21": java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'Conversion configuration error: Unknown structure 'Workbook' found in document', probably configuration error in file adapter (XML parser error)'
XSLT Code Used:
<?xml version='1.0' ?>
<?mso-application progid="Excel.Sheet"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<xsl:template match="DT_StockReports/*">
<Row>
<Cell>
<Data ss:Type="String">
<xsl:apply-templates/>
</Data>
</Cell>
</Row>
</xsl:template>
<xsl:template match="/">
<Workbook>
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
</DocumentProperties>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>10365</WindowHeight>
<WindowWidth>13260</WindowWidth>
<WindowTopX>120</WindowTopX>
<WindowTopY>60</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/>
<Borders/>
<Font x:CharSet="512"/>
<Interior/>
<NumberFormat/>
<Protection/>
</Style>
</Styles>
<Worksheet ss:Name="">
<Table ss:ExpandedColumnCount="40" ss:ExpandedRowCount="15000" x:FullColumns="40"
x:FullRows="15000">
<xsl:apply-templates/>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<PageSetup>
<PageMargins x:Bottom="0.984251969" x:Left="0.78740157499999996"
x:Right="0.78740157499999996" x:Top="0.984251969"/>
</PageSetup>
<Selected/>
<Panes>
<Pane>
<Number>40</Number>
<ActiveRow>40</ActiveRow>
<ActiveCol>15000</ActiveCol>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>
</xsl:template>
</xsl:stylesheet>
Thanks
AyuraInput xml:
<?xml version="1.0" encoding="utf-8"?><n0:MT_StockReports xmlns:n0="urn:novartis.com:pi:ph:sp:LM_DD_501_LSP_L0X:StockReports" xmlns:prx="urn:sap.com:proxy:Q75:/1SAI/TASEF7C5F005BC07ECC0997:700:2008/06/25"><Header><Material></Material><MaterialDescription></MaterialDescription><MType></MType><Bin></Bin><Unit></Unit><MS></MS><LS></LS><Type></Type><PGr></PGr><ABC></ABC><Crcy></Crcy><Prc></Prc><Vendor></Vendor><VendorName></VendorName><VendMat></VendMat><ManufacturingPartN></ManufacturingPartN><Batch></Batch><BatchExpiryDate></BatchExpiryDate><Unrestr></Unrestr><SafetyStk></SafetyStk><MinSafStck></MinSafStck><MinLotSize></MinLotSize><MaxLotSize></MaxLotSize><MaxLevel></MaxLevel><ReorderPt></ReorderPt><TotalStock></TotalStock><TotalVal></TotalVal></Header><Records><Material>20001</Material><MaterialDescription>SIEVED NATEGLINIDE / DS.01 / DR</MaterialDescription><MType>ZPI</MType><Bin></Bin><Unit>KG</Unit><MS>40</MS><LS>HB</LS><Type>M0</Type><PGr>S01</PGr><ABC></ABC><Crcy>SGD</Crcy><Prc>S</Prc><Vendor> </Vendor><VendorName></VendorName><VendMat></VendMat><ManufacturingPartN></ManufacturingPartN><Batch>SD0026</Batch><BatchExpiryDate>01.12.2011</BatchExpiryDate><Unrestr>49.803 </Unrestr><SafetyStk>0.000 </SafetyStk><MinSafStck>0.000 </MinSafStck><MinLotSize>110.000 </MinLotSize><MaxLotSize>550.000 </MaxLotSize><MaxLevel>1.000 </MaxLevel><ReorderPt>0.000 </ReorderPt><TotalStock>49.803 </TotalStock><TotalVal>1723.18 </TotalVal></Records></n0:MT_StockReports>
Edited by: Ayura Kanungo on Dec 28, 2011 7:11 AM -
Cannot Read Font Metrics Issue on Save As PDF
Hi All
On saving a document as PDF, the FrameMaker Console displays the message:
The font file may be damaged.
maker: Cannot read font metrics from font file named Tahoma-Bold.
The PDF is created but it contains squares in place of letters.
This only happens for one document within my book.
I have removed and reinstalled Tahoma, with no effect.
What has happened and what do I need to do to enable save to PDF for this document.
I am using FrameMaker 9.0 installed as part of Technical Suite 2 and running on Windows 7 professional.
Thank you for your help.
ClaireI'm on FrameMaker 10, installed about a month ago, and suddenly, yesterday, I started getting this exact error on PDFing a book I'd previously had no trouble with. Nothing apparently changed in my setup between everything working fine and getting these "the font file may be damaged" console errors. Interestingly, it's on exactly the same font as reported by Claire and MichaelH; Tahoma and Tahoma-Bold are listed as the troublesome fonts. These are not the commonplace Frame console "missing font" errors -- they totally mess up the PDF.
Both these fonts work perfectly in Word. We tried reinstalling, with no change, and I was about to call Adobe support, as recommended by our IT desk, but checked this forum first. A million thanks, Michael Müller-Hillebrand, for posting the exact solution to the problem. I cleared the Convert CMYK to RGB box and everything is fine now. Thank you SO much.
Adobe, could you please fix this? First message on this thread was almost a year ago and my copy of Frame was purchased last month. The issue should have been fixed by now. This has cost me about three hours, plus the time of the IT desk reinstalling FrameMaker. -
Problem Displaying generated Markup File (CLOB column)
Dear Colleague,
I am attempting to display the results of a generated Markup File in a Forms Text Item. The code (Below) is in a WHEN-BUTTON-PRESSED trigger.
Step 1: generates the markup file and stores it in the MARKUP_DOCUMENTS table.
Step 2: Copies the clob column DOCUMENT to the clob variable MYCLOB
--> At Step 2, my form crashes !!!
Is Oracle Forms not able to process CLOBs? The form was compiled as if there was no problem.
How can I access the results of the generated Markup File in the MARKUP_DOCUMENTS table and present it to the Oracle Forms user?
Best regards,
Randy
declare
myclob clob := empty_clob();
read_amount number(4):= 500;
read_offset number(4):= 1;
buffer varchar2(500) ;
begin
-- Step 1:
ctx_doc.markup(index_name => 'documents_index',
textkey => to_char(:hitlist_block.id),
text_query => :search_block.search_clause,
restab => 'markup_documents',
query_id => '1',
plaintext => TRUE);
-- Step 2:
SELECT document
INTO myclob
FROM markup_documents
WHERE query_id = 1;
-- Step 3:
dbms_lob.read(myclob, read_amount, read_offset, buffer);
-- Step 4:
:markup_block.markup_text := buffer;
go_block ('markup_block');
exception
when others then
message ('Document could not be displayed: '||dbms_error_text);
end;Hello,
This is what i use to display an HTML Forms Text Item:
Declare
lc$Texte Varchar2(2000) ;
lf$fic client_text_io.file_type ;
Begin
lf$fic := client_text_io.fopen('c:\test.htm', 'w');
client_text_io.put_line( lf$fic, '<html>' ) ;
client_text_io.put_line( lf$fic, '<script language="JavaScript">' ) ;
client_text_io.put_line( lf$fic, 'parent.window.resizeTo(600,400);' ) ;
client_text_io.put_line( lf$fic, '</script>' ) ;
client_text_io.put_line( lf$fic, '<body>' ) ;
client_text_io.put_line( lf$fic, '<FONT face="sans-serif" color=#1B62AB size=2>' ) ;
client_text_io.put_line( lf$fic, replace( :MAILS.TEXTE, CHR(10), '<br>') ) ;
client_text_io.put_line( lf$fic, '</body></html>' ) ;
client_text_io.fclose( lf$fic ) ;
client_host('cmd /C START "x" iexplore.exe c:\test.htm' ) ;
client_host('del c:\test.htm' ) ;
End;Francois -
Generated pdf file from oracle reports show bad characters
Hello all,
Iam fighting with a problem with generated pdf file from oracle reports which show some bad characters. I was searching for some information but it didnt help...
I have Oracle Database 11g R2 (or 10g R2) on Oracle Linux or Windows, Oracle forms and reports 6i (i know that is very old and not supported with 11gr2 but we are in this scenario).
NLS parameters are set like this
server:
NLS_CHARACTERSET EE8MSWIN1250
NLS_TERRITORY AMERICA
NLS_LANGUAGE AMERICAN
client:
NLS_CHARACTERSET EE8MSWIN1250
NLS_TERRITORY SLOVAK
NLS_LANGUAGE SLOVAKIA
When I run Oracle Reports it show perfect in display and when I try to print them, they are all good with good characters, but when I try to generate pdf file, some characters like č,š,ľ are not displaying corectly... This happen only when try to generate to pdf...
I try to work with uifont.ali on client side but without any result. Fonts for reports were installed on client and server side... Can someone help me with this problem? Thank you very much for every advice.
MartinHi Sergiusz,
Thank you for your reply. I look at what you wrote and try to make some test...
1) For first I download FontForge, which can generate type1 font from true type. So I open FontForge and open my Arial.ttf font and use "Generate Fonts" to save my Arial.ttf font to pfb and pfm (whoch are need to set in uifont.ali). I have to change encoding, because my font has 2byte encoding so I reecondode the font from ISO10646-1 to ISO8859-2 and generate to pfb.
2) Then I navigate REPORTS_PATH from regedit to my *.pfm and *.pfb files.
3) I add these lines to end of my uifont.ali
[ PDF:Embed ]
Arial = "Arial.pfm Arial.pfb"
ArialNarrow = "ArialNarrow.pfm ArialNarrow.pfb"
4) Then I generate my report but nothing change... I check "Font used" in my pdf file, but there were not my fonts embedded I guess..
I also try PDF:Subset, but it doesnt change anything... I try PDF aliasing to see if my uifont is working - this work very well, but I dont need to change font...
Any other advice? Thank you so much to everyone!
Martin -
Font.createFont() and temporary files
Hi,
I have a servlet which uses the Font createFont(int, InputStream) method to overlay text on an image, which is sent to the client.
However, each time this method is invoked, a copy of the font as a temporary file is stored in c:\windows\temp. Closing the input stream has no effect, and the files only seem to disappear once JBoss/Tomcat is shut down.
Once the font is read and rendered, it is no longer required; how does one signal that this temporary file should be removed? I cannot believe that there is no mechanism designed to programmatically remove these.
(as a possibly amusing sidenote - I recently went on holiday for two weeks and had temporarily commented out the lines to cache already-generated images. I came back to find 6Gb of temporary files, all of them being copies of Verdana.ttf!)
Thanks,
Matt
PS. Yes, I realise that it's inefficient to be reading the font file every time I invoke the servlet - I will change this, but I still dislike the thought of having useless temporary files floating around.Thank you both so much for your help; I've upgraded from 1.5.0_06 to 1.5.0_08 and the temporary files are now correctly garbage collected.
There are several reasons why I am using an InputStream for loading the Verdana font; firstly, I believe it is best practice to write code that is platform-agnostic where possible. Secondly, I prefer to bundle dependent resources in the software itself rather than rely - or hope - on the target system having what the software is after (within reason, of course).
However, the pragmatic answer is that since Java's font kerning capabilities are less-than-desired (non-existant, even?), I am using iText to calculate font kerning. iText reads the ttf file itself, so rather than have a hard-coded reference to c:\windows\fonts\verdana.ttf (ick!) I decided to bundle the font with the software. -
Hi,
I'm trying to develop a VI to format text for a report generator (trying
to be better, than the one with LV5.1), for this VI, I need to get
information (at run-time) about the size of the fonts (font metrics, I
think) in order to be able to perform text formating.
Does anybody know a way I can ask this information to Windows 9x, at
run-time from Labview.
Thanks,
Leopoldo
Sent via Deja.com http://www.deja.com/
Before you buy.Here's some code based on jsalonen's suggestion. It prints the font if M and i are the same width.
public static void main(String[] args) {
GraphicsEnvironment ge=GraphicsEnvironment.getLocalGraphicsEnvironment();
Font[] s=ge.getAllFonts();
Canvas comp=new Canvas();
for(int i=0;i<s.length;i++) {
int f1=comp.getFontMetrics(s).charWidth('i');
int f2=comp.getFontMetrics(s[i]).charWidth('M');
if(f1==f2) System.out.println(s[i].getName()); -
Problems reading generated pdf-files
Hi all,
I have problems reading generated pdf-files from
Report Builder 6.0.8.11.3
An error-message occurs when opening the pdf with
Adobe Acrobat 5.0.1:
... problem 110 and after moving in an empty pdf-document
the messages:
- too few operands
- an unrecognized token
I think the solution must be very simple, but the docu and
other info resources provide nothing aboutthis issue.
Greetings,
Bernhard<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by the oracle reports team:
hello,
there are no known problems with reading reports PDFs with later Acrobat Readers. maybe your file is somehow corrupt.
regards,
the oracle reports team<HR></BLOCKQUOTE>
I had to install a local printer, the network printer is not appropriate here. After that, everything is fine :-)),
Greetings,
Bernhard
null -
Do we really need .AFM files anymore in OSX?
Just going through and cleaning up the Font Library at my new workplace. All our work stations are Macs using OSX and Suitcase to manage our fonts. Is there any reason these days to save the .AFM files associated with our Macintosh Type 1 fonts?
Ken:
I didn't think so, either. But many of these font packages seem old and dating back to the pre OSX days, and they are Mac fonts, not Windows, so I'm wondering what they were even used for. -
Reports 6.0 and Parameter Lists and Generate to File
I am using the run_product built in from Forms 6.0 and opening
up a report passing it several parameters via a parameter list.
Everything works great when previewing the report.
There is the option in the report preview under File -> Generate
to File. When I generate a report to file using any type of
format it appears that the report does not use the parameters
that I passed in originally from the form. It appears that it
looses all the parameters I passed in. This is most concerning
to me. Am I doing something wrong or is this a "feature" I
didn't know about? I really would like users to have this
ability.
nullYes I guess this will work, but the option to generate to file
is extremely misleading if you ask me. This option should
generate the current report with the current parameters. This
is unacceptable as far as I am concerned and should be
considered a bug. Oracle needs to give us more control over
FORMS and REPORTS into all too many situations I have been
frustrated because I am not able to do something that I want to
do.
I feel in general REPORTS object is very limited compared to
crystal reports....
Dan Paulsen (guest) wrote:
: Give the user the option on the calling form whether to save
the
: report to file or just view it. If they want to save to file,
: pass the parameter to save to file when you call the report
and
: suppress the parameter form, this will eliminate the problem.
: Spencer Tabbert (guest) wrote:
: : I am using the run_product built in from Forms 6.0 and
opening
: : up a report passing it several parameters via a parameter
: list.
: : Everything works great when previewing the report.
: : There is the option in the report preview under File ->
: Generate
: : to File. When I generate a report to file using any type of
: : format it appears that the report does not use the
parameters
: : that I passed in originally from the form. It appears that
it
: : looses all the parameters I passed in. This is most
: concerning
: : to me. Am I doing something wrong or is this a "feature" I
: : didn't know about? I really would like users to have this
: : ability.
null -
Adogjf Unable to generate jar files under JAVA_TOP error while patching
Hi,
I'm upgrading my version of Java from 1.3.1_19 to 1.5.0_17. I downloaded the jdk-1_5_0_17-linux-i586.bin file and unpackaged it to /u0/<SID>/<SID>db/10.2.0. It unpackaged it to a new directory jdk1.5.0_17 (/u0/<SID>/<SID>db/10.2.0/jdk1.5.0_17), whereas the old version is in a directory jdk (/u0/<SID>/<SID>db/10.2.0/jdk).
Having done that I had to run an interoperability patch (4372996). Upon running this patch I received an error at the end:
adogjf() Unable to generate jar files under JAVA_TOP
There were no other errors.
I think the problem has to do with where my new java version is located but I'm not sure. I'm thinking that it's still looking under the old JAVA_TOP (/u0/<SID>/<SID>db/10.2.0/jdk) when I want it to look under the new JAVA_TOP (/u0/<SID>/<SID>db/10.2.0/jdk1.5.0_17). So, should I move the contents from the new directory (jdk1.5.0_17) to the old directory (jdk) or is there a way to 'point' it to the new JAVA_TOP.
Please let me know if I'm totally off base and there's another solution. We're currently on EBS 11.5.10.2, DB 10.2.0.4 and RHEL 4 Update 5.
Thanks,
Lia.Here you go. Hope this helps you to help me :-). Thanks.
+
** Generating the product JAR files...
STRT_TASK: [Generate JAR files] [] [Fri Mar 27 2009 09:20:32]
STRT_TASK: [Generate JAR files under JAVA_TOP] [] [Fri Mar 27 2009 09:20:32]
Signing product JAR files in JAVA_TOP -
/u0/mary/marycomn/java
using entity Customer and certificate 1.
Calling /u0/mary/marycomn/util/jre/1.1.8/bin/jre ...
Successfully created javaVersionFile.
Generating product JAR files in JAVA_TOP -
/u0/mary/marycomn/java with command:
adjava -mx512m -nojit oracle.apps.ad.jri.adjmx @/u0/mary/maryappl/admin/mary/out/genjars.cmd
Reading product information from file...
Reading language and territory information from file...
Reading language information from applUS.txt ...
Temporarily resetting CLASSPATH to:
"/u0/mary/maryappl/ad/11.5.0/java/adjri.zip:/u0/mary/marycomn/util/jre/1.1.8/lib/rt.jar:/u0/mary/marycomn/util/jre/1.1.8/lib/i18n.jar:/u0/mary/marycomn/util/jre/1.1.8/lib/tools.jar:/u0/mary/marycomn/java/appsborg.zip:/u0/mary/marycomn/java/apps.zip:/u0/mary/maryora/8.0.6/forms60/java:/u0/mary/marycomn/java"
Calling /u0/mary/marycomn/util/jre/1.1.8/bin/jre ...
The JDK version is 1.1.8
Validating the files/directories specified for -areas option
Validating the files/directories specified for -outputSpec option
Validating the directory specified for -lstDir option
About to Analyze the input areas : Fri Mar 27 2009 09:20:36
WARNING: Will not load stale resource unit META-INF/services/javax.xml.parsers
WARNING: Will not load stale resource unit META-INF/services/javax.xml.transform
Done Analyzing the input areas : Fri Mar 27 2009 09:20:43
About to Analyze/Generate jar files : Fri Mar 27 2009 09:20:43
About to Analyze fndnetcharts.jar : Fri Mar 27 2009 09:20:43
Up-to-date : fndnetcharts.jar
Done Analyzing fndnetcharts.jar : Fri Mar 27 2009 09:20:44
About to Analyze fndtdg.jar : Fri Mar 27 2009 09:20:44
Up-to-date : fndtdg.jar
Done Analyzing fndtdg.jar : Fri Mar 27 2009 09:20:44
About to Analyze fndjgl.jar : Fri Mar 27 2009 09:20:44
Up-to-date : fndjgl.jar
Done Analyzing fndjgl.jar : Fri Mar 27 2009 09:20:45
About to Analyze fndjle.jar : Fri Mar 27 2009 09:20:45
Up-to-date : fndjle.jar
Done Analyzing fndjle.jar : Fri Mar 27 2009 09:20:47
About to Analyze fndlrucache.jar : Fri Mar 27 2009 09:20:47
Up-to-date : fndlrucache.jar
Done Analyzing fndlrucache.jar : Fri Mar 27 2009 09:20:47
About to Analyze fndgantt.jar : Fri Mar 27 2009 09:20:47
Up-to-date : fndgantt.jar
Done Analyzing fndgantt.jar : Fri Mar 27 2009 09:20:47
About to Analyze fndpromise.jar : Fri Mar 27 2009 09:20:47
Up-to-date : fndpromise.jar
Done Analyzing fndpromise.jar : Fri Mar 27 2009 09:20:48
About to Analyze fndforms.jar : Fri Mar 27 2009 09:20:48
About to Generate fndforms.jar : Fri Mar 27 2009 09:20:49
Done Generating fndforms.jar : Fri Mar 27 2009 09:20:50
About to Sign fndforms.jar : Fri Mar 27 2009 09:20:50
ERROR: Javakey subcommand exited with status 1
Javakey standard output:
Adding entry: META-INF/MANIFEST.MF
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
AD Java Key Generation
Version 11.5.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
Javakey error output:
Reading product information from file...
Reading language and territory information from file...
Reading language information from applUS.txt ...
Successfully created javaVersionFile.
Customer not found in database.
java key error:
adjava -ms128m -mx256m sun.security.provider.Main -gs /u0/mary/marycomn/java/oracle/apps/fnd/jar/fndforms.jar.tmp /u0/mary/marycomn/java/oracle/apps/fnd/jar/fndforms.jar.uns
The above Java program failed with error code 1.
Done Analyzing/Generating jar files : Fri Mar 27 2009 09:20:51
AD Run Java Command is complete.
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
AD Java
Version 11.5.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
Failed to generate product JAR files in JAVA_TOP -
/u0/mary/marycomn/java.
adogjf() Unable to generate jar files under JAVA_TOP
AutoPatch error:
Failed to generate the product JAR files
You should check the file
/u0/mary/maryappl/admin/mary/log/4372996.log
for errors.
+
Maybe you are looking for
-
No Sound with Texts after iOS7 Update
After updating my iPhone 4 to iOS7 I have no sound for incoming texts when my phone is sleeping. All other sounds ok. Tried my alarm with phone asleep and it works. Music plays after going to sleep. Haven't noticed anything else not working. Whe
-
The backups mentioned above only back up NEW photos I took and put them on my cloud. My PC wouldn't recognize my phone without updating to IOS 7. I did some chores and came back to my phone and I have an error message on my iPhone screen. When I l
-
PPPoE Still Disconnects When Computer Sleeps
With 10.9.2 and again with 10.9.3, PPPoE disconnects when computer sleeps. This didn't happen with OS 8.x, OS 9.x, OS X 10.2, 10.8.x, 10.9.0, or 10.9.1. System Preferences>Energy Saver is set for display and computer to sleep after about 12 minutes
-
Histograms in Library Compare and Survey
Having all histograms visible simultaneously in either Compare "C" or Survey "N" mode within the Library module would be great for selecting which of a set of bracketed exposures is the one to keep or assign a star rating to. Underneath or beside the
-
I want to manage my contacts on my pc, not on the Internet. I do not have outlook on my pc. I can not find software to use on the pc to manage my contacts that will also sync with my iPhone 4s. Previously I used my palm desktop application, which i