Search for content within a PDF
Is it possible to search for content within a PDF across a mapped drive?
Yes. Use Edit>Advanced search. Choose All PDF Documents in and choose the mapped drive.
They have to be searchable PDF's of course...
Similar Messages
-
Searching for content within a specified directory
I am trying to do a simple content search on a specified directory, but I do not get the results I expect.
I have looked at the examples and based my code upon them.
If anyone can spot what I am missing or have forgotten I would be very grateful.
Thanks
ChrisHere is the offending code :import oracle.ifs.beans.LibrarySession;
import oracle.ifs.beans.LibraryService;
import oracle.ifs.adk.filesystem.*;
import oracle.ifs.beans.Search;
import oracle.ifs.search.AttributeQualification;
import oracle.ifs.search.AttributeSearchSpecification;
import oracle.ifs.search.ContextQualification;
import oracle.ifs.search.ContextSearchSpecification;
import oracle.ifs.search.FolderRestrictQualification;
import oracle.ifs.search.JoinQualification;
import oracle.ifs.search.SearchClassSpecification;
import oracle.ifs.search.SearchClause;
import oracle.ifs.search.SearchQualification;
import oracle.ifs.search.SearchSpecification;
import oracle.ifs.search.SearchSortSpecification;
// Import objects for working with search results
import oracle.ifs.beans.LibraryObject;
import oracle.ifs.beans.PublicObject;
import oracle.ifs.beans.Folder;
import oracle.ifs.beans.Document;
import oracle.ifs.beans.ContentObject;
import oracle.ifs.beans.SearchResultObject;
// Import object for exception handling
import oracle.ifs.common.IfsException;
import oracle.ifs.common.AttributeValue;
import java.util.Vector;
public class contentSearch
LibrarySession ls;
String strSearch;
public contentSearch()
public void setSession( LibrarySession libsession )
ls = libsession;
public LibrarySession getSession()
return ls;
public void setSearchString(String str)
strSearch = str;
public PublicObject[] SearchSimple()
Vector vecOutput = new Vector(50,5); PublicObject[] resultsArray = null;
try
ContextQualification cq = new ContextQualification();
cq.setQuery(strSearch);
String ContextClauseName = "CQ";
cq.setName(ContextClauseName);
SearchSortSpecification sortSpec = new SearchSortSpecification();
sortSpec.add(Document.CLASS_NAME, ContextQualification.ORDER_PREFIX+"."+ContextClauseName, true);
JoinQualification jq = new JoinQualification();
jq.setLeftAttribute(Document.CLASS_NAME, Document.CONTENTOBJECT_ATTRIBUTE);
jq.setRightAttribute(ContentObject.CLASS_NAME, null);
// Add Folder Restriction for the search
IfsFileSystem fsAPI = new IfsFileSystem( ls );
PublicObject po = fsAPI.findPublicObjectByPath("public_demo");
FolderRestrictQualification frq = new FolderRestrictQualification();
frq.setStartFolder( (Folder) po);
frq.setSearchClassname(PublicObject.CLASS_NAME);
// END of FolderRestrictionQualification
SearchClause sc = new SearchClause( cq, jq, SearchClause.AND );
ContextSearchSpecification cp = new ContextSearchSpecification();
cp.setContextClassname("CONTENTOBJECT");
cp.setSearchClassSpecification(new SearchClassSpecification(new String[] {"DOCUMENT", "CONTENTOBJECT"}));
cp.setSearchQualification(sc);
cp.setSearchSortSpecification(sortSpec);
// Session connection
LibrarySession session;
LibraryService serv;
// Connect to Oracle iFS
serv = new LibraryService();
session = serv.connect("system", "manager", "IfsDefault");
Search s = new Search(session, cp);
try
LibraryObject lo;
// Open the search
s.open();
while (true)
// Returns the next result row into Library Object
lo = s.next().getLibraryObject();
// Add LibraryObject to output vector to return
vecOutput.addElement( lo );
if (lo == null)
throw new RuntimeException ("Retrieving search results : LibraryObject is null");
else
// Print results
System.out.println(lo.getName());
} // End Of While Loop
} // End Of try block for search open
catch (IfsException e)
/* Throw an error, unless the exception is
* 22000 'End of Data' which is always thrown
* when s.next() reaches the end of the cursor.
if (e.getErrorCode() != 22000 )
// Something bad happened
e.setVerboseMessage(true);
throw new RuntimeException("Error happened in returning result set:"+e.getMessage());
} // End of catch block for search open
finally
// Check if the size of ResultSet Vector Is more than zero
if ( vecOutput.size() > 0)
resultsArray = new Pub licObject[vecOutput.size()];
for (int i=0; i < vecOutput.size(); i++)
// Copy the result set library object to Public Object Array
resultsArray[i] = (PublicObject) vecOutput.elementAt(i);
} // End IF
// Close the search
s.close();
} // End of Finally block for search open
catch (IfsException i)
System.out.println(" " + i.getMessage());
return resultsArray; // Return the results
null -
Searching for documens within dates
I thought that my issue was a trivial one but I have not a way to resolve it.
I have three Doc libraries containing mainly PDFs.
I need to be able to search for files within two dates (based either on Created, Modified or a Custom Date that I defined in each library).
ThanksThis works for Created:
Created>12/11/2013 Created<12/15/2013
as does this (both are managed properties for the same field)
DocCreatedTm>12/11/2013 AND DocCreatedTm<12/15/2013
This works for Modified:
Write>12/11/2013 AND Write<12/15/2013
You can use LastModifiedTime, Write or FileWrite as the property name.
You can find a list of managed properties ("Manage Search Schema") in the Search admin pages of Central Admin or Office 365.
Note that AND, OR and NOT must be in upper case.
Mike Smith TechTrainingNotes.blogspot.com
my SP customization book -
Unable to search for words in a pdf document
I am using Adobe Reader Ver 10.1.1 (All updates)
I have a pdf document in which I am unable to search for words. No words in the document are found even though they do exist. If I copy a word from within the document and paste it into the search criteria then instead of getting the word that I copied, I get substitute characters and it can in fact find these characters as the word being searched.
The document is a catalog and can be downloaded from the following URL.
http://www.carbatec.com.au/getcatalogue?zenid=d1cuvbat0ois0g37r0r33vnah1
I will appreciate any help as to why I cannot search for words in the document.Thank you Dave Merchant and try67 for your responses. As per my previous post, I contacted the company re the catalogue and they have responded favourably. I'll include their response because it gives the reason for the search failure as document compression which you might find interesting. I'll await their new catalogue and see if they have fixed the problem.
Company response:
Thank you very much for your input. And yes, you are correct, the compression we used for the current catalogue's PDF format does strip out text included in the catalogue. We used the compression settings we did with the intention of minimising download time, however I take your point about including text for search purposes (which I also utilise when I'm scanning through PDFs).
We will actually be posting out our new catalogue next week and we'll release the new PDF version on the website at the same time. I've asked our graphic designer to ensure that the PDF we use for the new catalogue includes searchable text. -
Searching for links across multiple pdf files
We have thousands of pdf files that are being moved to a new website. Some of these pdf files have links within them (either as text or as a hyperlink). This number is unknown.
The issue is how to programmatically search across multiple pdf files (numbering in the thousands) looking for links using a regular expression or part of a path. This will have to be able to search behind the text and search for the link url.
We first need to identify the number of files with links and create a list of the files with links that need modifying. If the number is too great to modify manually, then we would need the ability to programmatically edit these links.
The pdf files are stored in a database. Also, the pdf files are different versions and some are password protected.
Is there an Adobe product that will perform this? If not, are there any 3rd party vendor products that will accomplish this?
Thanks in advance for your help.I have no solution, but a thought: the database factor may seem to be
a killer. But you could look for a solution designed to read PDF files
from a web site (by spidering or from a list), which would presumably
load them.
Or could do a one off extraction of the files from the database into a
directory and use that for your process. Probably a very good idea,
since extracting all files from the database is likely to be costly
and hammer the server (but can be scheduled at a sensible pace), while
the search process will (if it is possible at all) doubtless need to
be run countless times.
Aandi Inston -
How to search for file within compressed file
I hope i can explain this correctly, I apologize in advance.
What is the command to search for a file that may/may not exist within another compressed file?
Situation is that I have a cron job that compresses the files in a folder on a scheduled date. I now need to search for a file that may exists in one of the several compressed files, which was a result of the cron job.
Thanks in advanceThere's an open source utility called zgrep. You can probably get it from http://www.sunfreeware.com/ .
HTH,
Roger S. -
Will not search for a word in pdf file. Using Windows 7
Like most I have used Acrobat reader for viewing PDF files for years. I recently upgraded to Windows 7 from XP. I have tried to search a PDF file for a word and it always comes up with none found even though I search for a word that is displayed in the document I'm looking at. Any advice?
Regards,
DwightIf the PDF is not a scanned image, can you share it with us: https://forums.adobe.com/thread/1070933
-
Programmatically search for a word in PDF file
In the program I am developing, I am opening up a PDF file from the application. Is there any way to search for a particular word in the PDF file and move to the page containing the first occurance of that word in the PDF file programmatically? I am using VC++ to develop the application.
Any guidance is appreciated and thanks in advance.Thanks for your reply Leonard.<br />I am not using any library now. Currently I am just opening up the PDF file in Adobe Acrobat Reader using ShellExecute() API passing the PDF filename. <br />Now I want to open the PDF file in Adobe Acrobat Reader, and move to the page containig a particular text automatically.<br />Is it possible through any command line arguments to AcroRd32.exe like, <br />AcroRd32.exe <filename.pdf> search:<wordtosearch><br />OR I have to use any third party library to do this.
-
How do I search for content in my bookmarks?
Hello,
is there a way to search only my bookmarks for content?
Essentially turn my bookmark folder into a personalized google?
ThanksClick the Bookmarks icon left side of the Safari window then select a Bookmark folder.
You should see a search field with a magnifying glass icon top right. -
Searching for content in stored webpages?
I am a student and Oracle Text is new to me. I am using isqlPlus with Oracle10g
I am trying to search the content of external websites I upload using a procedure. The files are uploaded as BLOBs. I know UltraSearch is out there, but I´m trying to make an easy example using only SQL syntax. So far, I am able to load the html documents into a directory, but the search results are always 0. I don´t know what I am missing (sorry for the ignorance)! Can anyone give me some tips?
I am not a DBA. This are the rights I have:
CONNECT
CREATE SESSION
CREATE ANY DIRECTORY
CTXAPP
RESOURCE
CREATE CLUSTER
CREATE INDEXTYPE
CREATE OPERATOR
CREATE PROCEDURE
CREATE SEQUENCE
CREATE TABLE
CREATE TRIGGER
CREATE TYPE
UNLIMITED TABLESPACE
--First I create a table
DROP TABLE t03_sorbaugh.CONTENT_INVENTORY;
CREATE TABLE t03_sorbaugh.CONTENT_INVENTORY (
CONTENT_INVENTORY_ID NUMBER NOT NULL,
FILE_NAME VARCHAR2(1024),
KEYWORDS VARCHAR2(2048),
URL SYS.HTTPURITYPE,
TEXT BLOB DEFAULT empty_blob(),
TEXT_LOADED CHAR(1) DEFAULT 'N' NOT NULL,
CONSTRAINT UNQ_CONTENT_INVENTORY
UNIQUE(CONTENT_INVENTORY_ID) USING INDEX
TABLESPACE USERS
--Then I load an external Website
INSERT INTO t03_sorbaugh.CONTENT_INVENTORY
(CONTENT_INVENTORY_ID, URL, KEYWORDS)
VALUES ('1', sys.httpuritype.createuri('http://en.wikipedia.org/wiki/Art'), '');
COMMIT;
--The Procedure looks like this (sorry for not keeping it short)
CREATE OR REPLACE PROCEDURE loadLOBFromBFILE IS
Dest_loc BLOB;
Src_loc BFILE := BFILENAME('DIR_TESTCASE', '');
Amount INTEGER := 0;
cursor ContentInv_cursor is
--create a recordset of the file names
--that we need to load from the filesystem into the
--Oracle database.
SELECT
CONTENT_INVENTORY_ID,
FILE_NAME
FROM t03_sorbaugh.CONTENT_INVENTORY
WHERE FILE_NAME IS NOT NULL;
varContentInv_id CONTENT_INVENTORY.CONTENT_INVENTORY_ID%TYPE;
varFileName CONTENT_INVENTORY.FILE_NAME%TYPE;
BEGIN
open ContentInv_cursor;
loop
varFileName := NULL;
varContentInv_id := NULL;
fetch ContentInv_cursor into varContentInv_id, varFileName;
exit when ContentInv_cursor%notfound;
Src_loc := BFILENAME('DIR_TESTCASE', varFileName);
IF DBMS_LOB.FILEEXISTS (Src_loc) = 1 THEN
SELECT text INTO Dest_loc FROM CONTENT_INVENTORY
WHERE CONTENT_INVENTORY_ID = varContentInv_id FOR UPDATE;
/* Opening the LOB is mandatory */
DBMS_LOB.OPEN(Src_loc, DBMS_LOB.LOB_READONLY);
DBMS_LOB.LOADFROMFILE(Dest_loc, Src_loc, dbms_lob.getlength(Src_loc));
/* Closing the LOB is mandatory */
DBMS_LOB.CLOSE(Src_loc);
/* Optional update statement */
UPDATE t03_sorbaugh.CONTENT_INVENTORY
SET TEXT_LOADED = 'Y'
WHERE CONTENT_INVENTORY_ID = varContentInv_id;
COMMIT;
END IF;
end loop;
EXCEPTION
WHEN OTHERS THEN
RAISE_APPLICATION_ERROR (-20001, 'Error occurred while loading LOBs.');
close ContentInv_cursor;
END;
-- I upload the file to the directory 'd:\daten\oracletextpraktikum'
set serveroutput on;
EXECUTE loadLOBFromBFILE;
-- PL/SQL-Prozedur erfolgreich abgeschlossen.
-- Now the preferences and the index
begin
ctx_ddl.create_preference('doc_lexer', 'BASIC_LEXER');
ctx_ddl.set_attribute('doc_lexer', 'printjoins', '_-');
end;
drop index idxContentMgmtURL;
create index idxContentMgmtURL on content_inventory(url) indextype is ctxsys.context;
-- Finally, I run an example where I search for the word "Art" ... the only Webpage uploaded to my directory contains the Art definition from Wikipedia, but still, I get no search results :(
SET LINESIZE 5000
SET PAGESIZE 5000
select content_inventory_id, url
from t03_sorbaugh.content_inventory
where contains(url,'&WORD_TO_FIND') > 0;
--Type "Art"
neu 3: where contains(url,'art') > 0
Es wurden keine Zeilen ausgewählt
Is isqlPlus somehow limited in using Oracle Text? I can´t seem to find the Problem!Okay, but I'm afarid I can't help much more than that, as I'm still new at Oracle Text myself. From my limited knowledge, it all looks fine, but like you, I must be missing something.
You might try asking the DBA if the TXTSUP_UTIL package is installed in the CTXSYS schema. If it isn't, he can download it from Metalink or I can send it via email.
While it won't fix the problem, it does offer some insight into the index preferences and storage, etc.
BIll Ferguson -
Searching for content in text insets
In a FrameMaker book, is there a way to search all the text insets in a book without opening each individual inset?
I'm working on a project that has more than 30 text insets. I'd like to search for certain terms without having to open each inset. I'm using FrameMaker 11.Not really, as FM won't search the inset content directly. You could try creating an auxiliary book that contains just the inset files and use the Find function on that book. You can also add this book to your main book and mark it with Exclude so it doesn't get output, but still provides access to everything from the main book file.
-
Search for keyword within musical genre
Trying to help my wife find a children's song on a particular topic for her kindergarten class. How does one conduct a search for a keyword WITHIN a particular genre? For example, how do I search for "Friday" or "Weekend" within the Children's Music genre?
Thanks...I didn't see an obvious way to do it in the iTunes Store, since Power Search does not have a genre choice.
At the Amazon.com MP3 Download Store, you can go directly to Children's Music and do the search. -
Correct way to search for character within a string
I am trying to search for the occurrence of a "(" within a text string - unfortunately my code is reported as incorrect.
I extract the text correctly but cannot create the search statement correctly:
var mylistpgftext = pgf.GetText (Constants.FTI_String)
for (var i=0; i < mylistpgftext.length; i++)
var mylistitem = mylistpgftext[i].sdata
var mybracketpos = mylistitem.search(/(/i) --------------error line-----------------
if (mybracketpos != -1)
alert(mylistitem)Hi Bob, I did not test this, but I think the problem is an unescaped character in your regular expression. Try this.
var mybracketpos = mylistitem.search(/\(/i);
Notice the backslash before the open parens that you are searching for.
-Rick -
How do you search for files that contain a specific string of text? I tried going to the folder in the finder and typing the string in the search box, but it does not seem to return correct results. True, I do see a couple of files that contain my string, but it doesn't show all the results. There are files that I know contain the string in the same folder, but it does not show them??
BobSpotlight should index PDF files (as well as Word and some other kinds of files) but it seems that PDFs are not created equal. I've seen and heard complaints that some scanner/OCR programs are saving files that aren't searchable and yours is one of them. Try opening one of the files in Preview and resaving it.
-
Is there a way to globally search for content?
As more types of video become available, my biggest bugaboo with the Apple TV is the lack of a global search for a movie or TV show title or actor. I now look on Netflix, then look on Hulu, then look at YouTube, then look in iTunes store every time I have an idea for something I wish to watch enters my head.
Other than a jailbreak, is there some way to do this that I am not getting? Is anyone else interested in this feature? Friends running home servers like Plex always bring this up as one of the reasons to use their solution.Jailbreaking will not help you with that. It is a matter of what vendors are dealing wheat suppliers, they aggrements they have in place, and the content they can get, and where (geographically) they can provide it. Other than iTunes, Apple has no control over that (and limited control even then).
I've been using an app called CanIStream.It for a while. Not always 100% accuratre, but has helped to find some content. I think they have a corresponding website, but not sure.
Maybe you are looking for
-
Create a report with PL/SQL
Hi, I have two pages: the first page contains two text fields and a submit button. In the first text field you can enter a name and in the second field you can enter a number. That means you can search a record by name or by number. In the second pag
-
Transaction MMAM - Change material type
Does anybody have documentation on transaction MMAM - Change Material type? Many thanks, stefano MAzzarelli
-
Reaport calling problem in 10g
Dear Friends, I am working on migrating developer 2000 forms to 10g forms. I am using migration tool for this. Everything is going fine except calling report from a form. Say, in the original form I had the following: RUN_PRODUCT(REPORTS,' C:\test1.r
-
I can no longer attach photos to messages that are SMS/MMS. I have that setting turned on and have tried to reboot phone and also reset phone system. Neither has worked. I had been able to do this in the past. Also now before the phone is turned on,
-
MSI's M.2 to Turbo Mini-SAS HD adapter card
i don't know why this thread was closed https://forum-en.msi.com/index.php?topic=256827.0 i have a question about it so have to make new thread. what cable should i use to connect NVMe ssd to this adapter? where to get one?