How to save annotation in flexpaper? - annotations

I m trying to save annotation in flexpaper.. I tried using this
marksArray = JSON.stringify($FlexPaper('documentViewer').getMarkList());
var initialMarks = JSON.parse(marksArray);
$FlexPaper('documentViewer').addMarks(initialMarks);
but it's not working..
In console, I tried using marks = $FlexPaper('documentViewer').getMarkList()[0];
I can see that its storing inside marks but for $FlexPaper('documentViewer').addMarks(marks) it's showing undefined.
Am I missing something? Please help me, Thanks in advance.

We 'll get the require files after downloading Annotations Web Server Package from flexpaper classic page. what I missed was <'flexpaper:annotations_handler runat="server"/> It should be inside the script in simple_document.aspx page. And In annotations_handlers.ascx page I shifted that (onMarkCreated ,onMarkDeleted,onMarkChanged) JQuery code to flexpaper_handlers.js file. After these changes its working for me.

Related

"Error loading image resource' from xcasset using PDF

I have an "Arrows.xcassets" containing two items, both PDFs of vector art arrows. They are set to "Scales->Single Scale" and loaded into the Universal slot.
I am trying to load them into an SKNode:
let arrowTex = SKTexture(imageNamed:"green_arrow_up")
let up = SKSpriteNode(texture: arrowTex))
When I run this, I get this error in the console:
Error loading image resource: "green_arrow_up"
There are a number of posts hinting that this is something you can do (like this one), but I can't find one that actually shows how to refer to the images in question. I tried:
green_arrow_up#1x
green_arrow_up#1x.png
green_arrow_up
green_arrow_up.png
but none of those worked. I'm sure there's a simple trick?
UPDATE: I found a second thread of the linked question which had more details including a link to a known-good file. I grabbed that file and it worked fine, I was even able to scale it down nice and small and it still looks great. I used Gapplin for the conversion from SVG to PDF, does anyone know one that works?
Ok, after some poking about I found a solution. Gappin simply doesn't do the conversion correctly, although what that means I can't really say. However, I found an online converter, and presto, everything works. So if you get this error, try using that converter and see if that fixes it.

typo3 FE image links with securedl

We recently moved a working installation of our typo3 website to another server and now some images are displayed wrong. They are being resized (displayed smaller than they actually are) and the anchor tag has this source:
src="/index.php?eID=tx_nawsecuredl&u=0&g=0&t=138......b&file=fileadmin/templates/../images/clear.gif"
As you can see, we use the naw_securedl extension. When I remove everything of the link until fileadmin (/index.php?eID=tx_nawsecuredl&u=0&g=0&t=138......b&file=) the image works, but of course this is not the sense of securedl.
Does anyone know a solution for this? I tried to figure out that is could be the setting "linkFormat" which is currently set to
/index.php?eID=tx_nawsecuredl&u=###FEUSER###&g=###FEGROUPS###&t=###TIMEOUT###&hash=###HASH###&file=###FILE###
and I updated the .htaccess file but it doesn't change anything...
Any help is appreciated. Thanks!

Change Middleman CSS Directory

I'm having a one problems with my Middleman site. I have two questions I haven't been able to figure out:
How do I move the "all.css.scss" file that my "index.html.erb" file
is referencing to the "Sass" folder? Of course, the link breaks when I move
it. Can't seem to find where to update the pathway in the code. Is this something I could do in bash?
Files are on my github.
Did you try changing/setting 'css_dir' within 'config.rb'?
See http://middlemanapp.com/advanced/configuration/#toc_2 for general information.
Issue fixed. I'm not sure what I was doing incorrectly the first few times, but I tried one more time updating the file path in config.rb and stlyesheet_link_tag... That fixed everything.
It did create a new issue of any background images in my css not loading. But the directory issues is completely resolved.
The most basic way to change a setting is to use set in your config.rb file.
#config.rb
set :js_dir, 'javascripts'
set :css_dir, 'stylesheets'
set :fonts_dir, 'assets/fonts'
set :images_dir, 'assets/images'
etc...
You can also use a newer syntax which is used for most of the global settings in Middleman.
#config.rb
config[:js_dir] = 'javascripts'
config[:css_dir] = 'stylesheets'
etc...
Middleman Docs

i am using jcarousel with the shortcodes ultimate wordpress plugin and i am having trouble posting it on the front page

I took the code from this page http://signsanddesigns2go.com/?page_id=608 and it works but I want it on my home page so I went to the editor and tried to copy and past the code under the banner slider it showed up but the images did not rotate can anyone help me with this issue please and thank you.
Have you added the auto attribute?
.jcarousel({
auto:2,
scroll:1,
wrap:"last"
})

Add an icon to a Perl/GTK application

I've written a little app in perl/Gtk, now I want to add an icon to it. I"ve got a jpg file.
The app is very basic, and of course use a Gtk2::Window object.
I was thought to use Image::Base::Gtk2::Gdk::Pixbuf but Gtk2::Window->set_default_icon only want a Gtk2::Gdk::Pixbuf object, and I have not managed to create one (if someone can show me). I'm on a debian with perl-5.14.2.
Thanks guys!
Oh, got it!
use Image::Base::Gtk2::Gdk::Pixbuf;
my $navIco = Gtk2::Gdk::Pixbuf->new_from_file("./mltwb.png"); `
$window->set_default_icon($navIco);`
Just had to read doc. Thanks folks!