Articles by "Featured"
Showing posts with label Featured. Show all posts



Quick tip on finding images within a string. I used this for a WordPress content conversion I did. I needed to find all the images in the post content, then copy them to a new location, and update the content with the new image URL. This works great for content scraping.


If you want to find all the images in string use:


preg_match_all("/http:\/\/www.domain.com\/([\w,\d,\-,\.,\/]+\.(?:jpe?g|png|gif))/iU",$post_content,$matches);

This also works great for any type of media:


preg_match_all("/http:\/\/www.domain.com\/([\w,\d,\-,\.,\/]+\.(?:jpe?g|png|gif|avi|mov|mp3|mp4|m4v|m4a))/iU",$post_content,$matches);
Then if we want to replace any of the these URLs in the content we can use:

preg_replace_callback("/http:\/\/www.domain.com\/([\w,\d,\-,\.,\/]+\.(?:jpe?g|png|gif|avi|mov|mp3|mp4|m4v|m4a))/iU",'url_replace',$post_content);

function url_replace($matches){

//format url to your liking

//$matches contains the results from the preg_replace pattern

return $new_url;

}





You can use PDF-XChange Viewer to highlight your pdf document. To use this PDF-XChange Viewer is very easy. You just need to click Tools on menu bar, choose Comment and Markup Tools, and then choose Highlight Text Tool. Now your pdf document is ready to be highlighted.
You also can manage your Highlight Text Tool such as you want to change the color or manage its Blend Mode. To manage your Highlight Text Tool, click Show Comment Styles Palette. The Blend Mode that you can choose such as: Normal, Multiply, Screen, Overlay, Darken, Lighten, Color Dodge, Color Burn, Hard Light, Soft Light, Difference, Exclusion, Hue, Saturation, Color, and Luminosity.
The others useful Comment and Markup Tools such as:

1. Sticky note. Note icon that you can choose for the sticky note such as: Checkmark, Circle, Comment, Cross, Help, Insert Text, Key, New Paragraph, Text Note, Paragraph, Right Arrow, Right Pointer, Star, Up Arrow, Up-Left Arrow.
2. Stamp Tool, such as APPROVED, AS IS, CONFIDENTIAL, DEPARTMENTAL, DRAFT, EXPERIMENTAL, EXPIRED, FINAL, FOR COMMENT, FOR PUBLIC RELEASE, NOT APPROVED, NOT FOR PUBLIC RELEASE, SOLD, and TOP SECRET.
3. File Attachment. Note icon that you can choose for the File Attachment such as: Graph, paperclip, Attchment, and tag.
Beside the above three, the others Comment and Markup Tools such as Typewriter Tool, text Box Tool, Callout tool, cross Out Text tool, Ynderline Text Tool, Arrow Tool, line Tool, Rectangle Tool, Oval Tool, Polygon Tool, Polygon Line Tool, Cloud Tool, Pencil Tool, Eraser Tool.
By using PDF-XChange Viewer, you also can add Rectangle Link and Quadrilateral Link on your pdf document.
You can download PDF-XChange Viewer from: http://www.pdfxviewer.com/