I'll rephrase
Right, I didn't explained quite right. I have a phototransitor connected to +Vcc and to ground through a 10k resistor, next to this phototransistor there's an infrarred diode so that when I pass a sheet of paper the infrarred light is reflected and the voltage between the 10k resistor and the emisor is about 4.6 V, and when I pass this same sheet of paper painted black (♫ No more colors them to turn black I see the girls..., never mind), the infrared light is absorbed and voltage is about 0.4 V in the same point. So far so good.
Now when I connect this point to the schmitt trigger when I pass the white sheet it works perfectly fine, but when passing the black sheet voltage stays around 0.93 V, which is not enough to change from 1 to 0 ( it must go lower than 0.8 v to change, and higher than 1.6 V to change from 0 to 1). What I've seen is that the input pin of the schmitt trigger is somehow draining through the 10k resistor.
Also, +Vcc = 5 V, the opto coupler is a CNY70 and the schmitt trigger inverter is a 74LS14.