How to locate italic text
I need to find all the locations where italic text is in the pdf document. It seems to me that there is not a way to do this with Acrobat X. Would someone please suggest a method to do this.
It's not possible with a script, either. Maybe with a plugin. Try the Acrobat SDK forum.
Similar Messages
-
How do I enable bold/italic text formatting in blog module on website?
For some reason I can't figure out how to enable more text formatting options on our blog. We used the blog module on a muse template. I customized the module to apply fonts we used on our website. The main text on the blog is Lato.
Link to blog: Coupar Consulting
When we go in to write a post you can use the bold/italics options and it shows up in the edit window as shown in the screenshot below:
The font is not correct, but because I set the font in the module to use Lato it does show as lato when you publish, see preview below (notice no bold or italic text):
What am I missing??
Thanks in advance!!Use your browsers console and inspect tool. This stuff becomes very easy.
address,caption,cite,code,dfn,em,strong,th,var,optgroup
font-style: inherit;
font-weight: inherit;
Line 34 ish in - http://www.couparconsulting.com/css/site_global.css?3869595648
This overides the font bold style on strong. -
[JS] (CS2) How do you insert pseudo tags around italic text
I need to find all the italic text strings wherever they occur (tables, headers, footers etc) in an InDesign CS2 document and insert a pseudo-xml tag before and after each string (something like
before and <\I> after.)
I'm positive this must be possible but my limited experience has failed me so far.
Can anyone point me in the right direction please.
TIA
Doug NealeWith many thanks to the experts, I managed to sort out the table slant problem. For the benefit of all our many readers, here is the complete solution tested with a multi page document hosting all sorts of text and tables. It's quite long because I believe in plenty of comments.
// make sure we have at least one document open
if (app.documents.length == 0) {
// warn operator and exit immediately
alert("There are no open documents.");
exit();
// OK if we get here, we have an open doc
myDoc = app.activeDocument;
// set up start and end tags
startTag = "#.";// should really be "
endTag = "#:";// should really be "<\i>"
slantTagCount = 0;// initialise our two counters
italicTagCount = 0;
// If we are going to search/change something, we use preferences
// So, the first thing we have to do is clear them out;
// they're application level properties; see pages 567 and 568:
app.findPreferences = null;
app.changePreferences = null;
// use the search() method to search entire document for italic fonts
myFinds = myDoc.search('', false, false, undefined, {fontStyle : 'Italic'});
if (myFinds.length != 0) {
// myFinds will consist of an array of references into the text of the doc
// each reference pointing to a run offset
// run the loop backwards so that if we make any changes to the text runs
// it won't affect the array of references.
// now add the italic tags
for (var j = myFinds.length-1;j>=0;j--){
// at each italic text run we want to insert
// a pseudo xml tag at beginning and end
// Adding the tags is this simple (end tag first):
myFinds[j].insertionPoints.item(-1).contents = endTag;
myFinds[j].insertionPoints.item(0).contents = startTag;
italicTagCount++;
// as the italic effect can also be achieved by applying a slant to each character
// we need to check the whole document again, but this time we do it story by story
// Finding slanted text--when text.skew is not zero, text has been slanted.
// Unfortunately, what you want to look for is cases where this value is NOT zero,
// and even InDesign's grep search can't find that (it can apply NOT to character classes,
// but not to formatting attributes)--or, at least, I can't figure out how to do it.
// So you have to "roll your own." Something like this:
myStories = myDoc.stories;
for (var jj = myStories.length-1; jj >= 0; jj--) {
// loop through all the stories in the document
myStory = myStories[jj];
//Given a story "myStory"...
for(var myCounter = myStory.textStyleRanges.length -1; myCounter >= 0; myCounter --){
if(myStory.textStyleRanges.item(myCounter).skew != 0){
//Found some slanted text.
myStory.textStyleRanges.item(myCounter).insertionPoints.item(-1).contents = endTag;
myStory.textStyleRanges.item(myCounter).insertionPoints.item(0).contents = startTag;
slantTagCount++;
// the above procedure does all the italic content in tables as well as ordinary text boxes
// but only does skewed (slanted) text in ordinary text boxes.
// We need to tackle skewed text in tables separately.
for (var i = myStories.length - 1; i >= 0; i--) {
// go through every story
for (var j = myStories[i].tables.length - 1;j >= 0; j--) {
// go through every table in this story
for (var k = myStories[i].tables[j].columns.length - 1; k >= 0; k--) {
// go through every column in this table
for (var m = myStories[i].tables[j].rows.length - 1; m >= 0; m--) {
// go through every row in this column to look at each cell
myCell = myStories[i].tables[j].columns[k].cells[m];
// introduce another variable to make next bit more readable
myCellStyle = myCell.textStyleRanges;
if (myCellStyle.length !=0) {
// go through all the text ranges in this cell
for (var myCounter = myCellStyle.length - 1; myCounter >= 0; myCounter --) {
// check each range item for skew
if (myCellStyle.item(myCounter).skew != 0) {
// found some slanted text so tag it
myCellStyle.item(myCounter).insertionPoints.item(-1).contents = endTag;
myCellStyle.item(myCounter).insertionPoints.item(0).contents = startTag;
slantTagCount++;
// tell operator what we did, note that document appearance not updated until
// alert has been acknowledged by operator.
alert ("Italic Tag Count = "+italicTagCount+"\nSlant Tag Count = "+slantTagCount);
Regards,
Doug Neale -
How do i add text to my photos?
How do i add text to my photos - previously you could do this on iphoto
Many users find the excellent and highly-recommended BorderFX more than meets their needs.
A couple of things to note:
- "Photos" misleads us into an understanding of what we manipulate with our computers that differs from what our computers are programmed to manipulate. Within Aperture, you have Images (called, imho confusingly, also Versions and also Photos); outside of Aperture you have image-format files that you see listed in the Finder and use in other programs. BorderFX lets you overlay text and watermarks, and add borders, to Images in Aperture. When you do this, a new file is created and automatically imported (it becomes a new Original). You can also export via BorderFX, in which case a file based on your Image and the changes you've set in BorderFX is saved to the location (outside of Aperture) that you specify.
- Adding text to an Image is a _graphics_ operation, and not a _digital camera file_ operation: it is outside the remit of Aperture, which hews to being a photographer's non-destructive RAW digital camera file storage and development workspace. You use Aperture to store, organize, and develop (make as good as possible for a particular use) digital camera files. When you need a new graphics file, you (generally) export your Image from Aperture, and create new graphics files using a graphics program (e.g.: Photoshop, Pixelmator, GIMP, etc.). Graphics programs are built from the ground up as compositors. Aperture does almost no compositing. BorderFX is a slick, purpose-driven compositing plug-in. -
In ABAP How to locate an Input file from a Directory during run time
I'm loading data from a flat file(text file) into SAP thru BDC programs. All my input files are present in Application server.How to locate an Input file in a directory during run time to process BDC programs programmatically. Are there any in-built functions?Provided me some sample code or any method of doing the same.
Hello Murali,
you should ask this question in the ABAP forum.
Regards
Gregor -
Post Author: ftpaxa
CA Forum: Other
I use a SQL server DataBase on Windows server 2003 with service pack 2. i use Crystal Report 10 with ODBC connection. I read that the nice DLL is "Crdb_odbc.dll".I saw a VB code "How to format a text object" on this site :http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=crxiTechrefenpdf&sliceId=&dialogID=7686352&stateId=1%200%207680692--' Create a new instance of the report.Dim oReport As New CrystalReport1Private Sub Form_Load()' Declare a TextObject object.Dim oTextObject As CRAXDRT.TextObject' Declare a generic Object.Dim oObject As Object' Declare a Section object.Dim oSection As CRAXDRT.Section' This variable is set to true once the' text object is found.Dim bText As BooleanbText = False' Search for all the report objects in each section.For Each oSection In oReport.SectionsFor Each oObject In oSection.ReportObjects' Find the first text object.If oObject.Kind = crTextObject Then' Get the text object and exit the loop.Set oTextObject = oObjectbText = TrueExit ForEnd IfNext oObjectIf bText Then Exit ForNext oSection' Format the text object and change the text.With oTextObject.BackColor = vbYellow.BorderColor = vbRed.BottomLineStyle = crLSDoubleLine.CanGrow = True.CharacterSpacing = 125.CloseAtPageBreak = True.FirstLineIndent = 25.Font.Italic = True.Font.Bold = True.Font.Size = 14.HasDropShadow = True.Height = 900.HorAlignment = crLeftAlign.KeepTogether = True.Left = 200.LeftIndent = 750.LeftLineStyle = crLSDashLine.MaxNumberOfLines = 16.RightIndent = 250.RightLineStyle = crLSDotLine.Suppress = False.SuppressIfDuplicated = True.SetText "Hello World".TextColor = vbBlue.TextRotationAngle = crRotate0.Top = 25.TopLineStyle = crLSSingleLine.Width = 3000End With' Set the report source of the viewer and view the report.CRViewer1.ReportSource = oReportCRViewer1.ViewReportEnd SubSo, i would like to do the same thingswith winbatch language. I tried this code :;Get CrystalRuntime Application Object HandleobjCra = ObjectCreate("CrystalRuntime.Application");Logs on to on or more SQL servers or ODBC data sources.objCra.LogOnServer("Crdb_odbc.dll","Magic","xxx","xx","zzzz") ; ("DLL file", "Server", "dbname", "username", "password"); open the saved reportobjReport = objCra.OpenReport("C:\Download\Perso\Programmation\Winbatch\Crystal Report\Final\rapport exploitation - abend.rpt")objReport.DiscardSavedData()TxtObj = objReport.Sections("PHb").ReportObjects("Text11")txtObj.Text = "testing" ; *** Error on this line : 1266: Ole:Bad Param Count;Export htmlPathHTML = strcat("C:\Download\Perso\Programmation\Winbatch\Crystal Report\Final\Resultat\rapport exploitation - abend.htm")hfile = PathHTMLcre = crr.ExportOptionscre.DestinationType = 1 ; diskfilecre.FormatType = 32 ; 24 = (HTML 3.2 standard), 31 = (PDF), 32 = (HTML4.0) cre.HTMLFileName = hfilecrr.Export(BOOL:@false)objectclose(cre)objectclose(objReport)objectclose(objCra)exit--
Everythings work good except this linetxtObj.Text = "testing" I receive this error :1266: Ole:Bad Param CountI may be don't have the nice recipe. If you have a solution, it is welcome.Post Author: KAM
CA Forum: Other
Try using SetText. Thanks. -
How to eliminate "Company" text in smartform "address" node
Hi all,
I got a problem.
I want to display company address using "Organization Address" in address node.
However, the address node displayed "Company" text automatically when company address contains incomplete info. Eg, the company address only contains city='new city' info.
Then the address node will displayed as below:
Company
city
Anyone know how to remove "Company" text if no incomplete company address data?
Any suggestion/comment will be greatly appreciated!
Thanks.
best regards,
Xiang Li Heahread addres using internal tables. dont use address node..
refer this code.
SELECT SINGLE ADRNR FROM KNA1
INTO ADDRNUM
WHERE KUNNR EQ WA_VBPA1-KUNNR.
SELECT * FROM ADRC INTO TABLE IT_ADRC
WHERE ADDRNUMBER = ADDRNUM.
READ TABLE IT_ADRC INTO WA_ADRC INDEX 1.
then print wa_adrc-city.
wa_adrc-street like this.
if u want to remove company andall dat is already therein fields then please contact urfunctional consultant. they will give u the tcode to remove that.
some usefulinformation. hopeu will get tcode from here also. to remove company from address.
Client
SCC4
Tools > Administration > Administration > Client Admin > Client Maintenance
Change the name of the client you are using (updates T000) Client Independent
Company Code
OX02
IMG > Enterprise Structure > Maintain Structure > Definition > Financial Accounting > Define, copy, delete, check Company Code > Define Company Code
Change the name, city and country to your company details (updates T001)
Company Code Address
OBY6
IMG > Financial Accounting > Financial Accounting Global Settings > Company Code > Enter Global Parameters > Click on address button
Maintain the complete address details here (updates SADR)
Credit Control Area
OB45
IMG > Enterprise Structure > Maintain Structure > Definition > Financial Accounting > Maintain Credit Control Area
Change the description (updates T014)
Controlling Area
OX06
IMG > Enterprise Structure > Maintain Structure > Definition > Controlling > Maintain Controlling Area
Change the name (updates TKA01)
Plant
OX10
IMG > Enterprise Structure > Maintain Structure > Definition > Logistics u2013 General > Define, copy, delete, check plant > Define Plant. Select the plant of choice and go into the detail screen.
Change Name 1 and Name 2 and detailed information (updates T001W)
Plant address
OX10
IMG > Enterprise Structure > Maintain Structure > Definition > Logistics u2013 General > Define, copy, delete, check plant > Define Plant. Select the plant of choice and go into the detail screen. Click the address button.
Maintain the complete address details here (updates SADR)
Division
OVXB
IMG > Enterprise Structure > Maintain Structure > Definition > Logistics u2013 General > Define, copy, delete, check division > Define Division
Change the name (update TSPA)
Storage Location
OX09
IMG > Enterprise Structure > Maintain Structure > Definition > Materials Management > Maintain Storage Location
Change the description (updates T001L)
Purchasing Organization
OX08
IMG > Enterprise Structure > Maintain Structure > Definition > Materials Management > Maintain Purchasing Organization
Change the description (updates T024E)
Sales Organization
OVX5
IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Define, copy, delete, check Sales Organization > Define Sales Organization
Change the name and replace the standard texts ADRS_* with ZXYZ_* (updates TVKO)
Sales Organization Address
OVX5
IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Define, copy, delete, check Sales Organization > Define Sales Organization > Click the address button
Maintain the complete address details here (updates SADR)
Distribution Channel
OVXI
IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Define, copy, delete, check Distribution Channel > Define Distribution Channel
Change the name (updates TVTW)
Sales Office
OVX1
IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Maintain Sales Office
Change the description (updates TVBUR)
Sales Office Address
OVX1
IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Maintain Sales Office > Click the address button
Maintain the complete address details here (updates SADR)
Sales group
OVX4
IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Maintain Sales Group
Change the description (updates TVKGR)
Shipping Point
OVXD
IMG > Enterprise Structure > Maintain Structure > Definition > Sales and Distribution > Define, copy, delete, check Shipping Point > Define Shipping Point
Change the description and replace the standard texts ADRS_* with ZXYZ_* (updates TVST) -
How to edit default text in fla file
I'm using an open-source Flash mp3 player. In comes in two swf versions. One plays a list of songs and displays the album cover(s). The other version just plays one song. The problem is that the single-song version loads some default text that I want to change (I was able to do this in the other version via the external playlist file). I'm a Flash newbie, and when I open the fla file the player's author provides, I can't find where this default text is located. (The playlist version works fine; its default text relates to what the user will get when they click on the file titles.) Links:
Playlist version that works OK - http://www.keithpurtell.com/kthings/fripp.htm
Single song version with wrong default text - http://www.keithpurtell.com/kthings/bjcole.htmSOLUTION:
For the benefit of anyone else using the XSPF mp3 player, here is how to change default text. The XSPF player file is deployed to your server with your target mp3 files, whatever playlists you have created, and a file ending with the .as extension. The .as file contains the default text and can be changed with a good (free) text editor like NotePad++. -
Hello All,
We are using the TableView Control in one of our aplications to display search results.When we built this particular application we were on EP6 SP2 PL 29.
Some how in that version teh header text in the tabledataview control was displaying italic text.
We used the following piece of code do this.
bean.setSearchHeader("Search Result(s) For: <i>"+ bean.getSearchString()+ " </i>("+ mySearch.getTrueResults()+ ")");"
This would display the keyword we searched for in Italic.
Now we have migrated from EP6 SP2 to EP6 SP16.
The correct portal version is:
J2EE Engine 6.40 PatchLevel 102141.313
Portal 6.0.16.0.0
KnowledgeManagementCollaboration 6.0.16.3.0 (NW04 SPS16 Patch3)
Now in this particular version when we search for any keywords.
The results are displayed but the header data does not show the keyword in Italics, however it displayes the "<i>" tag.
Let me know whether we can display italic text in table Header.
Thanks and Regards
Manoj Kumar
Message was edited by: Manoj KumarHi,
to customize the header of the TableView change the header renderer.
1. implement IHeaderRenderer interface:
public class HeaderRenderer implements IHeaderRenderer {
public void renderHeader(TableView tableView, IPageContext pcontext) {
TextView tv = new TextView();
tv.setEncode(false);
tv.setText("<i>italic header text</i>");
tv.render(pcontext);
public boolean willRenderHeader(TableView tableView, IPageContext pcontext) {
//allways render
return true;
2. set the header renderer class to your TableView object:
tableView.setHeaderRenderer(new HeaderRenderer());
this should show the text in the table header in italics.
Romano -
How to BOLD some text in TEXT control?
Hi,
I am using {'\n'} for line break. Which HTML tag <should
be <b> > should bold the first 2 words of the sentence?
Plus How do I insert a BULLET before "Smaller"
Thanks
<mx:Text color="#F9CD00" text="Top Reports{'\n'}Smaller
Ventricular Assist Device Gets Nod From FDA/>2 ways -
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
backgroundGradientColors="[#FFFFFF, #FFFFFF]">
<mx:Text width="100%" color="blue" fontStyle="italic"
fontSize="14">
<mx:htmlText>
<![CDATA[
This is 14 point blue italic text.<br>
<b><font color="#000000" size="10">This text is
10 point black, italic, and bold.</font></b>
]]>
</mx:htmlText>
</mx:Text>
</mx:Application>
or
var myTextField:TextField = new TextField();
myTextField.text = "No matter where you click on this text
field the TEXT IN ALL CAPS changes format.";
myTextField.autoSize = TextFieldAutoSize.LEFT;
addChild(myTextField);
addEventListener(MouseEvent.CLICK, changeText);
var myformat:TextFormat = new TextFormat();
myformat.color = 0xFF0000;
myformat.size = 18;
myformat.underline = true;
function changeText(event:MouseEvent):void
myTextField.setTextFormat(myformat, 49, 65);
HTH
Matthew -
How to locate the correct image file before reading/saving it
Hi,
I would like to find out how to copy/save/read image files from certain website in Java, particularly to locate the right one from various relative URL links on the same website. Below is an example to look at:
On the main web page
By selecting (http://www.abc.com/Public/Details.aspx?adid=2007103609) on a tiny camera icon that consist of source code (<td class="even"><a target="_blank" href="http://www.abc.com/Public/Details.aspx?adid=2007135110"><img src="/images/camera.gif" width="19" ...></a></td>) directed me to another page with the actual photo.
The source code of this secondary page where the photo is located are as follows:
<script language="JavaScript" type="text/javascript"><!--
</script>
<style type="text/css">@import url("http://fdimages.def.com.au/cui/netstrip-20050427.css");</style>
<div id="networkStripTop">
<a href="http://www.def.com.au/" onclick="linktop(this);" target="_top"><img src="http://fdimages.def.com.au/cui/digital.gif" height="17" width="95" class="logo" alt="DEF Digital" /></a>
<div class="links">Any suggestion would be much appreciated.
Many thanks,
JackHi All,
Could someone give me a hand with suggesting on how to locate the correct links (from multiple web pages) of the image file? I still could not proceed further on this issue.
There is no problem with saving/reading the file once it is accurately identified.
Please move it to the Java Technology & XML forum if it is not already in it.
Many thanks,
Jack -
Italic text in textarea?
please tell me how can make textarea text in italic by clicking a appropriate button.
is that possible by using javascript??Hi,
set font to the textarea...
textarea.setFont("Times",2,10);
0-Normal
1-Bold
2-Italic
enjoy... -
How to print long text in scripts
plzzzzzzzzz answer this qestion
how to print long text in scriptsHi Kranthi,
You can create Text Id and include that in your script.
For example:
/E TEXT
/: INCLUDE ZTEXT OBJECT TEXT ID ST
Hope this helps.
Please reward if useful.
Thanks,
Srinivasa -
How to print the text in points wise in sap script
hi friends,
how to print the text in points wise in sap script.
ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
1. hai how ru.
2. what r u doing.
3.where r u.
like this i want numbering.. waiting for ur replys.
thanks,
kirandeclare a counter
data : cnt type char 4.
print :
cnt = cnt + 1.
&cnt& &text&
cnt = cnt + 1. and so on.
or.
if the data is in an internal table
loop at internal_table.
cnt = cnt + 1.
write form.
in script -&cnt& &text&
endloop.
Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM -
How to print the text in only last but one page in sapscripts
hiiiiiiiiiii,
explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?Hello,
The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
So u can handle the situation in ur form like this
/: if &PAGE& = &SAPSCRIPT-FORMPAGES&
p1 TEXT
/: endif
Try in this way it may help u.
Regards
Maybe you are looking for
-
Latest Feb 19, 2013 Java update for 10.6 breaks Safari 5.1.7
Hi people, long time viewer first time poster here. I wasn't sure on how to contact apple in regards to their latest Java update on the 19th February 2013, so I thought I post it here and see if others have the same problem. So, I'm running the follo
-
Such commands are not visible in my initial page any longer. I still have the options of clicking ''show/panel/read it later'' or ''show/panel/similar sites'', but I still prefer the buttons on the initial page.
-
Hi, 1. I have added new column to query that generate Interactive Report, but the column does not show on the report. 2. No matter how I change the order of these columns in the query and the report attribute, still does not change the way/order they
-
The symbol '' changes to a square box in ODI
Hi All, I have a query where there is a condition such as the one mentioned below:- DECODE (mc.CURRENCY, '','EUR', mc.CURRENCY When I copy Paste this code the symbol '' gets converted to a square box and the condition returns no rows. I am able to se
-
In Adobe 7, I need to add some pdf pages to the end of a document, but the insert pages (as well as all other items under Document> are greyed out. On the document properties\ Security> the document restrictions summary says "Changing the Document: N