Howto get the list of all streams?

Greetings!
Newbie here. Be kind. I am reading the PDF Reference but not finished of course.
I would like to know if there is a way once you programmatically open the PDF file to know how many stream object there are in the PDF short of scanning the file from top to bottom?
Thank you for help, its appreciated.

Hi IroSenth,
You're right of course. I should go look at the end in the xRef cross reference table first.
But this would lead me to more tables and streams and going down that rabbit hole I will leave for a fresh monday morning...
Really, I am learning to program after not doing that for 10 years....
I wrote so far a nice little C# UI that displays in a textbox what it can from the PDF source as I cast the bytes into a unicode array.
The purpose is simply to let me look at it, know where the cursor (offset) is and so forth : its an exploratory tool, a glorified version of notepad that I can use to display specific ranges of the pdf, albeit unicode encoded.
The streams is where the textbox in my little app encounter (most probably) illegal character combinations since the output always cuts off in the midle of the stream. Hence I convert the stream to 1's and 0's display them as such in the textbox.
I'll have to implement FlateDecode next week (ouch!!! (for a newbie )...
In a nutshell, I wanted to know how many things were encoded in the file.
How many stream ... endstream there were in there.
Thanks for your time, its really appreciated.
Sincerely,
Antoine

Similar Messages

  • How can i get the list of all users present in the LDAP

    Hi Experts,
    How can i get the list of all users present in the LDAP ?
    Is there any API or function Code to get all user list??
    Please help me out!!!
    Help will be rewarded

    Well it will depend on exactly where your UME configuration points to in the LDAP tree but yes, it is possible to get all users.  Something like the following should do it:
    import com.sap.security.api.*;
    import com.sapportals.portal.prt.component.*;
    IUserFactory iuf;
    ISearchResult isr;
    IUser user
    String userid;
    iuf = UMFactory.getUserFactory();
    isr = iuf.getUniqueIDs();
    you will need to iterate the ISearchResult object but you can get IUser objects by
    userid = (String)isr.next();
    user = iuf.getUser(userid);
    then you can imanipulate / identify / or whatever you need with the user object
    Haydn

  • How can i get the list of all users present in the UME ?

    Hi Experts,
    How can i get the list of all users present in the UME ?
    Is there any API or function Code to get all user list??
    Please help me out!!!
    Help will be rewarded
    -pankaj chouhan

    Hi Pankaj,
    find the official NetWeaver security javadocs (including access to UME) <a href="http://help.sap.com/javadocs/NW04S/current/se/index.html">here</a>. Look for classs UMFactory and proceed from there.
    Best regards,
    Martin

  • How to get the list of all process order which are settled?

    Hello Friends,
    Is there any  standard report available to get the list of all settled  Process Order or  Production order?
    Thanking all of you in advance.
    Regards,
    Jitendra

    Hi,
    You can the below standardreports for knowing the list of Settled Process Orders :
    1. Use Tcode : COOIS and in the selection fields provide the Process Order Type, Plant and System Status As " SETT" and execute the same . System will list all the Process Orders which were settled so far.
    2. Use Tcode : CO26 with selection fields as above.
    Hope this will suffice your reqt.
    Regards
    radhak mk

  • How to get the list of all running process in java

    hi all,
    i want to get the list of all running processes on my system. please let me know if it is possible to do with JAVA. which class i should use?
    waiting for reply
    bye

    Wrong forum. Just a hint.

  • Newbie ques : How to get the list of all tables in the database

    Hi,
    I'm very new to Oracle (using Oracle8i currently). I wanted to know if there is a way to get the list of all tables in the database. Like in mySQL you can use the command " show tables" to get the list of all the tables.
    Any help will e greatly appreciated. Please "cc" any reply to [email protected] also.
    thanks
    Deven

    Hi
    Select table_name, owner from all_tables;
    will give u all the tables in the database.
    all_tables, dba_tables, user_tables
    all_objects, dba_objects, dba_objects
    there are many, more tables. login as system and query the tab and try to describe the tables.
    Thanks
    Malar

  • How to get the list of all formtypes in SBO?

    Hello,
    How can i get the list of all available formtype in SBO?
    Each SAP Business One form has a unique type to support multiple instances of the same form. For example, the type of the Purchase Order form is 142, Form=139 for Sales Order.
    Is this information stored anywhere?
    Thanks and Regards,
    Sheetal

    Hi Juha / Sheetal,
    Activating the menus will only help to get the forms which are "directly" accessible...
    ...but there are forms that come up only when clicking some button - or double-clicking - or activating a menu item in the (dynamic!) "Goto" menu etc.
    In 2005 SP01 a new function was introduced (and documented in the SDK Helpcenter) that can be used to iterate over all integer IDs (note there are a lot of gaps) up to 65535 and get information about the form and items on it (specifically the databinding!).
    Please take a look at the ResourceData property of the Application object in UI API!
    Gaps (in A version today - to my best knowledge): 10.000 - 20.000; 21.000 - 40.000; 41.000 - 50.000; 51.000 - 60.000...
    Regards,
    Frank
    <i>Visit the WiKi-FAQ at: https://wiki.sdn.sap.com/wiki/display/HOME/BusinessOneFAQ</i>
    BTW: What do you need that information on "all forms" for?
    Message was edited by:
            Frank Moebius

  • How to get the list of all users

    Hi,
    Is there a way in Grid Control for getting the list of all users on all target databases? I need to count how many Oracle db users in our company.
    Thanks a lot.

    One way to do it might be...
    Assuming you have preferred credentials set up for all of your databases, you could run a 'select username from dba_users or all_users;' against all of your databases through grid control.
    Click on Targets tab, click Databases, then the 'Execute SQL' link at the bottom of the page. Click 'Add' and 'Select All'. Then run it. It's just running the same sql across all of your databases and the output will be at the bottom for all of them.

  • How can i get the list of all tcode used by user of particular module

    Hi,
    How can i get the list of all tcode used by user of particular module (e.g FI , MM ,PP) within year .
    Regards
    Vikram

    Login to your SAP System
    Run TCode SE16
    Type Table Name : TSTCT
    Press F7 Key (Table Contents )
    Go to Settings in menu bar
    Select User Parameters
    Under Keyword select Field Label and press green check mark
    Select your criteria in Data Browser and execute
    You will see all t codes in there
    Regards,
    Yogesh

  • Table to get the list of all tables in the database

    hi,
    please let me knwo the table where i can get the list of all tables in the database

    hi,
    please let me knwo the table where i can get the list
    of all tables in the databaseHi Michael,
    Will you EVER start reading some documentation?
    I guess it's not far that many regulars won't reply to those kind of questions.
    Believe me, reading doesn't hurt (well, at least, most of the times).
    Rgds,
    Guido

  • Can we get the list of all BO report scheduled to be sent(or have been sent) for a specified day?

    Hi all,
    For all BO reports scheduled to be sent out, can we get the list of all BO report to be sent(or have been sent) for a specified day?(For example, today or nex Monday).    Thank you.
    Regards,
    Eton.

    Hi Eton,
    To check the instances which have ran today, you can use the below query in query builder.
    SELECT SI_NAME,SI_ID FROM CI_INFOOBJECTS WHERE SI_INSTANCE=1 AND  SI_STARTTIME > '2014.08.20 00:00:00' Order by SI_STARTTIME DESC
    To check the instances which would be running in the future, that means you have recurring schedules. Check for the SI_NEXTRUNTIME to get the details of instances which will run in the future as per the recurrences.
    Thanks,
    Prithvi

  • Need to get the list of all procedures called in an object

    Hi,
    I am trying to find the list of all proceudres called in an object. I can get the list of packages and individual procedures/functions using dba_dependencies, all_dependencies or user_dependencies. However this would not give me the list of procedures of a package that are used in my object.
    How to find the procedures of a package (and not just the package name) being called in another object?
    Thanks in advance
    Upendra

    You can take the package name from user_depencies and query the USER_SOURCE table for the object name where the package name exists.
    Eg code, here PKemp is the package name.
    SELECT SUBSTR(TEXT,INSTR(TEXT,'PKEMP'))
    FROM USER_SOURCE
    WHERE NAME = 'PROCEMP'
    AND INSTR(TEXT,'PKEMP') >=1
    SUBSTR(TEXT,INSTR(TEXT,'PKEMP'))
    PKEMP.SALUP;

  • How to get the list of all the security Roles defined ?

    I am trying to programatically get a list of all the roles defined
    in the weblogic. How can I access this information using the exiting
    MBean interfaces.
    thanks
    Prasad

    Wrong forum. Just a hint.

  • Is there a way to get the list of ALL user exits in ECC 5.0 or 6.0

    Is this list published somewhere by SAP or can we get it from the system somehow? I m not talking about Enhancement or BADI's just user exits.
    Thanks for reading

    Hi ,
        Just check this program to get the list
    Hi,
    Copy the problem in SE38 and Execute it
    Enter the Tcode u want
    this will the list of Userexits and badis
    TABLES: TSTC,
    TADIR,
    MODSAPT,
    MODACT,
    TRDIR,
    TFDIR,
    ENLFDIR,
    SXS_ATTRT ,
    TSTCT.
    DATA: JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
    DATA: FIELD1(30).
    DATA: V_DEVCLASS LIKE TADIR-DEVCLASS.
    PARAMETERS: P_TCODE LIKE TSTC-TCODE,
    P_PGMNA LIKE TSTC-PGMNA .
    DATA: WA_TADIR TYPE TADIR.
    START-OF-SELECTION.
    IF NOT P_TCODE IS INITIAL.
    SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
    ELSEIF NOT P_PGMNA IS INITIAL.
    TSTC-PGMNA = P_PGMNA.
    ENDIF.
    IF SY-SUBRC EQ 0.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'PROG'
    AND OBJ_NAME = TSTC-PGMNA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM TRDIR
    WHERE NAME = TSTC-PGMNA.
    IF TRDIR-SUBC EQ 'F'.
    SELECT SINGLE * FROM TFDIR
    WHERE PNAME = TSTC-PGMNA.
    SELECT SINGLE * FROM ENLFDIR
    WHERE FUNCNAME = TFDIR-FUNCNAME.
    SELECT SINGLE * FROM TADIR
    WHERE PGMID = 'R3TR'
    AND OBJECT = 'FUGR'
    AND OBJ_NAME EQ ENLFDIR-AREA.
    MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
    ENDIF.
    ENDIF.
    SELECT * FROM TADIR INTO TABLE JTAB
    WHERE PGMID = 'R3TR'
    AND OBJECT in ('SMOD', 'SXSD')
    AND DEVCLASS = V_DEVCLASS.
    SELECT SINGLE * FROM TSTCT
    WHERE SPRSL EQ SY-LANGU
    AND TCODE EQ P_TCODE.
    FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
    WRITE:/(19) 'Transaction Code - ',
    20(20) P_TCODE,
    45(50) TSTCT-TTEXT.
    SKIP.
    IF NOT JTAB[] IS INITIAL.
    WRITE:/(105) SY-ULINE.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    Sorting the internal Table
    sort jtab by OBJECT.
    data : wf_txt(60) type c,
    wf_smod type i ,
    wf_badi type i ,
    wf_object2(30) type C.
    clear : wf_smod, wf_badi , wf_object2.
    Get the total SMOD.
    LOOP AT JTAB into wa_tadir.
    at first.
    FORMAT COLOR COL_HEADING INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 'Enhancement/ Business Add-in',
    41 SY-VLINE ,
    42 'Description',
    105 SY-VLINE.
    WRITE:/(105) SY-ULINE.
    endat.
    clear wf_txt.
    at new object.
    if wa_tadir-object = 'SMOD'.
    wf_object2 = 'Enhancement' .
    elseif wa_tadir-object = 'SXSD'.
    wf_object2 = ' Business Add-in'.
    endif.
    FORMAT COLOR COL_GROUP INTENSIFIED ON.
    WRITE:/1 SY-VLINE,
    2 wf_object2,
    105 SY-VLINE.
    endat.
    case wa_tadir-object.
    when 'SMOD'.
    wf_smod = wf_smod + 1.
    SELECT SINGLE MODTEXT into wf_txt
    FROM MODSAPT
    WHERE SPRSL = SY-LANGU
    AND NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
    when 'SXSD'.
    For BADis
    wf_badi = wf_badi + 1 .
    select single TEXT into wf_txt
    from SXS_ATTRT
    where sprsl = sy-langu
    and EXIT_NAME = wa_tadir-OBJ_NAME.
    FORMAT COLOR COL_NORMAL INTENSIFIED ON.
    endcase.
    WRITE:/1 SY-VLINE,
    2 wa_tadir-OBJ_NAME hotspot on,
    41 SY-VLINE ,
    42 wf_txt,
    105 SY-VLINE.
    AT END OF object.
    write : /(105) sy-ULINE.
    ENDAT.
    ENDLOOP.
    WRITE:/(105) SY-ULINE.
    SKIP.
    FORMAT COLOR COL_TOTAL INTENSIFIED ON.
    WRITE:/ 'No.of Exits:' , wf_smod.
    WRITE:/ 'No.of BADis:' , wf_badi.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'No userexits or BADis exist'.
    ENDIF.
    ELSE.
    FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
    WRITE:/(105) 'Transaction does not exist'.
    ENDIF.
    AT LINE-SELECTION.
    data : wf_object type tadir-object.
    clear wf_object.
    GET CURSOR FIELD FIELD1.
    CHECK FIELD1(8) EQ 'WA_TADIR'.
    read table jtab with key obj_name = sy-lisel+1(20).
    move jtab-object to wf_object.
    case wf_object.
    when 'SMOD'.
    SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
    CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
    when 'SXSD'.
    SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
    CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
    ENDCASE.
    Thnks
    Abhishek

  • To get the list of all session-id-owner

    Hello from Vienna,
    It is about a website, the user, who is already logged in, has a session-id.
    a) How can i get all the list of the users, who currently have a session-id ?
    b) How can i list the current session-ids (which still are active)
    That ist a question of an exam.
    many thanks

    You can store every session id (or token) in a data base. When user logs in You simply assign the user with token and save this token into data base, the token of course has a "valid thru" field. Then when You need to list the users You make a query that gets the users with tokens that are still valid.
    I don't know if this can be done plainly on the servlet side.

Maybe you are looking for

  • Steps to upgrade Client Side Xe with apex3.2.1

    Hi, I want to upgrade client side xe with apex3.2.1.Please help me to do this. can you send me any llink with step by step installation of apex3.2.1 over client xe. Thanks & Regards Manoj

  • Incorrect order for referential constraints in Export

    When multiple tables are selected to export, the created file places the ALTER TABLE statements for the Referential Constraints immediately after the creation of the source table. Unfortunately, most of the time this will mean that the referenced tab

  • Connecting to SQLServer 2k named Instance

    Hey guys, this time i need some URGENT help, i swapped from windows to linux platform and using CF9, when i create a DSN in windows using SERVER_NAME\INSTANCE_NAME for the Server field, filling user name and password with a Microsoft SQL Server nativ

  • Can't import some photos?

    In iMovie 09 I can't import certain photos from iPhoto library (or directly in Finder). Some photos when dragged into the Project Pane just don't get added to the project. All my photos are jpgs and they're all larger than the project resolution I'm

  • After Effects error: invalid filter (25::3)

    Someone reported this error when using my plug-in on a Mac. It works fine on my Mac and on many others, but reports this error on his system. My globalsetup code gets called and works fine, but AE reports this error. Any ideas?