Annual report pursuant to Section 13 and 15(d)

9. COMMON STOCK AND WARRANTS (Details)

v2.4.1.9
9. COMMON STOCK AND WARRANTS (Details) (USD $)
12 Months Ended
Dec. 31, 2014
Dec. 31, 2013
Dec. 31, 2012
Minimum [Member]      
Price per Share      
Begining Balance $ 5.47us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
$ 1.80us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
$ 1.80us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
Warrants issued   6.32peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsIssued
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
6.45peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsIssued
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
Warrants exercised 6.09peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExercised
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
1.80peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExercised
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
1.80peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExercised
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
Ending Balance $ 6.09us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
$ 5.47us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
$ 1.80us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MinimumMember
Maximum [Member]      
Price per Share      
Begining Balance $ 735.00us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
$ 745.50us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
$ 745.50us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
Warrants issued   7.59peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsIssued
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
8.85peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsIssued
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
Warrants exercised 8.85peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExercised
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
8.85peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExercised
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
7.95peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExercised
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
Warrants expired 5.47peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExpired
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
745.50peix_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRightsExpired
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
 
Ending Balance $ 735.00us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
$ 735.00us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
$ 745.50us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1
/ us-gaap_RangeAxis
= us-gaap_MaximumMember
Warrant      
Number of Shares      
Begining Balance 8,275,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
5,039,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
426,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
Warrants issued   3,548,000peix_WarrantsIssued
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
4,633,000peix_WarrantsIssued
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
Warrants exercised (6,615,000)peix_WarrantsExercised
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
(285,000)peix_WarrantsExercised
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
(20,000)peix_WarrantsExercised
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
Warrants expired (804,000)peix_WarrantsExpired
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
(27,000)peix_WarrantsExpired
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
 
Ending Balance 856,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
8,275,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
5,039,000us-gaap_ClassOfWarrantOrRightOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
Weighted Average Exercise Price      
Begining Balance $ 10.04peix_WeightedAverageExercisePriceWarrantsOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
$ 17.10peix_WeightedAverageExercisePriceWarrantsOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
$ 117.60peix_WeightedAverageExercisePriceWarrantsOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
Warrants issued   $ 6.98peix_WeightedAverageExercisePriceWarrantsIssued
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
$ 7.80peix_WeightedAverageExercisePriceWarrantsIssued
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
Warrants exercised $ 7.17peix_WeightedAverageExercisePriceWarrantsExercised
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
$ 7.27peix_WeightedAverageExercisePriceWarrantsExercised
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
$ 2.85peix_WeightedAverageExercisePriceWarrantsExercised
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
Warrants expired $ 5.47peix_WeightedAverageExercisePriceWarrantsExpired
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
$ 745.50peix_WeightedAverageExercisePriceWarrantsExpired
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
 
Ending Balance $ 36.55peix_WeightedAverageExercisePriceWarrantsOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
$ 10.04peix_WeightedAverageExercisePriceWarrantsOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember
$ 17.10peix_WeightedAverageExercisePriceWarrantsOutstanding
/ us-gaap_ClassOfWarrantOrRightAxis
= us-gaap_WarrantMember