Page 2 of 3 First 123 Last
  1. #11

    Join Date
    May 2016
    Location
    Jacksonville, FL
    Posts
    1,657
    Blog Entries
    7
    You can also load a PDF into GIMP to extract images; yay for open source free software and all that jazz. For that matter, just right clicking an image in Acrobat Reader will give you the option of opening it in Paint (or whatever the one included with Win10 is called).

    If it helps, once I do a text export with Acrobat (Pro) I load it into Notepad++ and do an advanced search replace for " \r" to "\r" and " \n" to "\n" to get rid of all those sentences and paragraphs with a trailing space that PDFs seem to like. Then I replace the smart single quotes with a dumb single quote (mainly because they look silly in FG's teensy weensy fonts) but I keep smart double quotes, which if I decide to keep in reference manual pages I will replace with their ASCII equivalents.

    After those few find/replaces, that usually gets things ready to work with and easier to copy/paste either directly into FG or into the XML file I'm working in.

  2. #12
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    NV, USA
    Posts
    624
    Blog Entries
    29
    Quote Originally Posted by Talyn View Post
    You can also load a PDF into GIMP to extract images...
    right clicking an image in Acrobat Reader will give you the option...
    text ... into Notepad++ replace for " \r" to "\r" and " \n" to "\n" ...

    Again Talyn, thanks for responding...

    Gimp... I haven't gotten around to it, not because I'm afraid, it's just, how many graphics editors do I need? Right? Photoshop, Gimp, Krita, Inkscape, blah, blah, blah-blah....

    Hadn't tried the Reader... I'll give that a go too...

    As I mentioned to Lord Entrails, I wrote a little extension that strips all those little nasties (CRs and LFs) plus does the ASCII substitutions and warns of any ASCII character > 127. It also does ligature fixes for me. All inside the Windows Clipboard. So when I Ctrl-V into my Story window in FG all that yuck is gone.

    It needs some cleaning up and then I'll probably post it.

    Thanks....
    Last edited by Minty23185Fresh; June 4th, 2018 at 04:49.

  3. #13
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    NV, USA
    Posts
    624
    Blog Entries
    29
    I think I'm about done here. I hope some find this of interest and assistance.

    The real meat of this work is in post 2 & 3 above

    If readers have anything, anything at all, that they would like to add to the summaries in posts 2 & 3 of this thread please let me know.
    Last edited by Minty23185Fresh; June 16th, 2018 at 00:11.
    Current Projects:
    5E Druid Wild Shapes Implementor (Extension)
    Local Dice Tower (Extension)
    Community Contributions:
    Catalog of Forum Threads Related to PDF conversion to FG Module
    Field Filters for All Libraries (Extension)
    "A Neophyte Tackles the FG Extension" - A tutorial blog series.

  4. #14
    Myrdin Potter's Avatar
    Join Date
    Oct 2015
    Location
    East Bay, SF
    Posts
    1,643
    Blog Entries
    4
    I convert from pdf to FG and I use the FG program for data entry. I think I go about twice as fast as you, but that is probably from practice.

    I use the free adobe reader and GIMP. I usually copy images via adobe and paste into gimp where I size them.

    This thread is a helpful resource, thanks.
    Ultimate License. Running a 5e campaign blending together PoTA and SKT. Asks lots of questions. Mgpotter.com. PureVPN is a tested solution to run games when traveling. https://billing.purevpn.com/aff.php?aff=33044

  5. #15
    Erin Righ's Avatar
    Join Date
    May 2016
    Location
    Vernon, BC, Canada
    Posts
    391
    Thanks for this thread, for the record, Gimp ignores pw protection too, but converts everything to a graphic
    Two roads diverged in the woods and I, I took the one less traveled, and that has made me hopelessly lost!

  6. #16
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    NV, USA
    Posts
    624
    Blog Entries
    29
    Quote Originally Posted by Myrdin Potter View Post
    I convert from pdf to FG and I use the FG program for data entry...
    I do too. I've read elsewhere how you employ Word to do text cleanup prior to pasting to FG. My machinations are similar, instead I use a little extension I wrote that does similar cleanup. I was going to add a table importer to it and then I saw celestian's extension.

    Quote Originally Posted by Erin Righ View Post
    … Gimp ignores pw protection too, but converts everything to a graphic.
    Noted. I corrected the table in post 3.

    And I've added a few more "Useful Tools" to the list.

    Myrdin & Erin, thanks for the input.

  7. #17
    I find all of these tips extremely useful. However, I do have one question... What if the PDF is just a compilation of JPGs? Meaning there is no way to identify all of the text so you can just copy and paste directly into FG.

    Currently, I copy the image and paste into OneNote and then "Copy Text from Image". Only downfall of this method is that sometimes extra spaces or symbols will be copied in the text and in order to get things right I have to go through and edit everything.

    Anything you have learned to make this process faster would be appreciated, I'm converting over 150 monsters from reddit UnearthedArcana basically. And well unless there's an easier way, I think I've become a little over ambitious. lol.

  8. #18
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    10,445
    For 5e NPCs there's NPC Engineer.

    Otherwise copy to something like Notepad++ and use search/replace to get rid of extra spaces and unwanted hyphens etc and paste that into FG.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea to the wish list http://fg2app.idea.informer.com/

  9. #19
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    GMT -7
    Posts
    7,307
    Blog Entries
    9
    Quote Originally Posted by mostcallmetim View Post
    I find all of these tips extremely useful. However, I do have one question... What if the PDF is just a compilation of JPGs? Meaning there is no way to identify all of the text so you can just copy and paste directly into FG.

    Currently, I copy the image and paste into OneNote and then "Copy Text from Image". Only downfall of this method is that sometimes extra spaces or symbols will be copied in the text and in order to get things right I have to go through and edit everything.

    Anything you have learned to make this process faster would be appreciated, I'm converting over 150 monsters from reddit UnearthedArcana basically. And well unless there's an easier way, I think I've become a little over ambitious. lol.
    That's the problem with text recognition, it has flaws.

    If you want lots of monsters, see Maasq's conversion of the Monster a Day / 1d6 Adventures. It has over 400 NPCs in it; https://www.fantasygrounds.com/forum...ter-Compendium

    Current Projects: Ultimate Undermountain (NYDUM)
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets
    DMsGuild Content: Balance Disturbed (Adventure), Dungeon Room Descriptions
    FG Product Reviews: Virtual Scribe Reviews

  10. #20
    Minty23185Fresh's Avatar
    Join Date
    Dec 2015
    Location
    NV, USA
    Posts
    624
    Blog Entries
    29
    Quote Originally Posted by mostcallmetim View Post
    ... there is no way to identify all of the text so you can just copy and paste...
    One of the threads in post two (text from images) talks a bit about this. But if I understand correctly OneNote might be doing this for you? Sometimes software included with printers can deal with OCR too.

    Quote Originally Posted by mostcallmetim View Post
    ... sometimes extra spaces or symbols will be copied in the text and in order to get things right I have to go through and edit everything ...
    This isn't specific to your particular project. In every module I have been converting there seems to be some issue with "extra characters".

    I use some lua code to help me clean out extra line feeds, carriage returns, and unprintable characters.
    Current Projects:
    5E Druid Wild Shapes Implementor (Extension)
    Local Dice Tower (Extension)
    Community Contributions:
    Catalog of Forum Threads Related to PDF conversion to FG Module
    Field Filters for All Libraries (Extension)
    "A Neophyte Tackles the FG Extension" - A tutorial blog series.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in